congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
UsageException.<init>
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using de.mhus.lib.errors.UsageException.<init> (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<init>

Popular methods of UsageException

    Popular in Java

    • Parsing JSON documents to java classes using gson
    • requestLocationUpdates (LocationManager)
    • findViewById (Activity)
    • getApplicationContext (Context)
    • Font (java.awt)
      The Font class represents fonts, which are used to render text in a visible way. A font provides the
    • Set (java.util)
      A Set is a data structure which does not allow duplicate elements.
    • Stack (java.util)
      Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
    • UUID (java.util)
      UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
    • TimeUnit (java.util.concurrent)
      A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
    • JCheckBox (javax.swing)
    • Top 17 Plugins for Android Studio
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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