congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
UsageException
Code IndexAdd Tabnine to your IDE (free)

How to use
UsageException
in
de.mhus.lib.errors

Best Java code snippets using de.mhus.lib.errors.UsageException (Showing top 5 results out of 315)

origin: de.mhus.cherry.reactive/reactive-model

public void setType(TYPE_NODE type) {
  if (type == TYPE_NODE.RUNTIME)
    throw new UsageException("can't set type to RUNTIME");
  this.type = type;
}
origin: de.mhus.lib/mhu-lib-core

public static Artifact toArtifact(String def) {
  if (def == null) return null;
  if (def.startsWith("mvn:")) {
    String[] parts = def.substring(4).split("/");
    return new Artifact(parts[0], parts[1], parts[2], parts.length > 3 ? parts[3] : null);
  }
  if (def.startsWith("wrap:")) {
    int p = def.indexOf('$');
    if (p > 0) def = def.substring(0, p);
    String[] parts = def.substring(5).split("/");
    return new Artifact(parts[0], parts[1], parts[2], parts.length > 3 ? parts[3] : null);
  }
  if (def.indexOf('/') > -1) {
    String[] parts = def.split("/");
    return new Artifact(parts[0], parts[1], parts[2], parts.length > 3 ? parts[3] : null);
  }
  if (def.indexOf(':') > -1) {
    String[] parts = def.split(":");
    return new Artifact(parts[0], parts[1], parts[3], parts[2]);
  }
  throw new UsageException("Unknown format");
}    

origin: de.mhus.cherry.reactive/reactive-util

public void createXml(Element xml) {
  if (!xml.getNodeName().equals("bpmn2:process"))
    throw new UsageException("not a bpmn2:process node");
origin: de.mhus.lib/mhu-lib-core

in = in.substring(3);
int p = in.indexOf(':');
if (p < 0) throw new UsageException("key id not found");
String keyId = in.substring(0, p);
in = in.substring(p+1);
origin: de.mhus.cherry.reactive/reactive-util

public void load(Element xml) {
  if (!xml.getNodeName().equals("bpmn2:process"))
    throw new UsageException("not a bpmn2:process node");
de.mhus.lib.errorsUsageException

Most used methods

  • <init>

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now