Codota Logo
UsageException.<init>
Code IndexAdd Codota 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)

  • Common ways to obtain UsageException
private void myMethod () {
UsageException u =
  • Codota IconObject[] object;new UsageException(object)
  • Smart code suggestions by Codota
}
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

    • Start an intent from android
    • setContentView (Activity)
    • compareTo (BigDecimal)
      Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
    • setScale (BigDecimal)
      Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
    • Point (java.awt)
      A point representing a location in (x, y) coordinate space, specified in integer precision.
    • FileInputStream (java.io)
      A FileInputStream obtains input bytes from a file in a file system. What files are available depends
    • ConnectException (java.net)
      A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
    • MalformedURLException (java.net)
      Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
    • JOptionPane (javax.swing)
    • Join (org.hibernate.mapping)
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now