Examples of ModelException


Examples of org.camunda.bpm.model.xml.ModelException

    return referenceBuilder;
  }

  protected <V extends ModelElementInstance> void setAttributeReference(AttributeReferenceBuilder<V> referenceBuilder) {
    if (this.referenceBuilder != null) {
      throw new ModelException("An attribute cannot have more than one reference");
    }
    this.referenceBuilder = referenceBuilder;
  }
View Full Code Here

Examples of org.eclipse.dltk.core.ModelException

    public InputStream getContents() throws CoreException {
      try {
        return this.archiveFile.getInputStream(entry);
      } catch (IOException e) {
        throw new ModelException(e, IModelStatusConstants.IO_EXCEPTION);
      }
    }
View Full Code Here

Examples of org.keycloak.models.ModelException

        if (t.getCause() != null && t.getCause() instanceof ConstraintViolationException) {
            throw new ModelDuplicateException(t);
        } if (t instanceof EntityExistsException) {
            throw new ModelDuplicateException(t);
        } else {
            throw new ModelException(t);
        }
    }
View Full Code Here

Examples of org.openbp.core.model.ModelException

   * @param model Model to add
   * @throws OpenBPException On error
   */
  protected void addModelToStore(Model model)
  {
    throw new ModelException("ClassPathOperation", "Class path model manager does not support modfying operations.");
  }
View Full Code Here

Examples of org.openrdf.model.util.ModelException

  {
    Iterator<Value> iter = objects().iterator();
    if (iter.hasNext()) {
      Value obj = iter.next();
      if (iter.hasNext()) {
        throw new ModelException();
      }
      return obj;
    }
    return null;
  }
View Full Code Here

Examples of org.openrdf.model.util.ModelException

      return null;
    }
    if (obj instanceof Literal) {
      return (Literal)obj;
    }
    throw new ModelException();
  }
View Full Code Here

Examples of org.openrdf.model.util.ModelException

      return null;
    }
    if (obj instanceof Resource) {
      return (Resource)obj;
    }
    throw new ModelException();
  }
View Full Code Here

Examples of org.openrdf.model.util.ModelException

      return null;
    }
    if (obj instanceof URI) {
      return (URI)obj;
    }
    throw new ModelException();
  }
View Full Code Here

Examples of org.openrdf.model.util.ModelException

    {
      Iterator<Value> iter = objects().iterator();
      if (iter.hasNext()) {
        Value obj = iter.next();
        if (iter.hasNext()) {
          throw new ModelException();
        }
        return obj;
      }
      return null;
    }
View Full Code Here

Examples of org.openrdf.model.util.ModelException

        return null;
      }
      if (obj instanceof Literal) {
        return (Literal)obj;
      }
      throw new ModelException();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.