public ProcessEngineException alreadyMarkedEntityInEntityCacheException(String id, Class<? extends DbEntity> entityClass, DbEntityState state) { return new ProcessEngineException(exceptionMessage( "003", "Inserting an entity with Id '{}' and type '{}' which is already marked with state '{}'", id, entityClass, state )); }
public ProcessEngineException requiredAsyncContinuationException(String id) { return new ProcessEngineException(exceptionMessage( "033", "Asynchronous Continuation for activity with id '{}' requires a message job declaration", id )); }
public ProcessEngineException instantiateSessionException(String name, Throwable cause) { return new ProcessEngineException(exceptionMessage( "054", "Could not instantiate class '{}'. Message: '{}'", name, cause.getMessage() ), cause); }
public WrongDbException wrongDbVersionException(String version, String dbVersion) { return new WrongDbException(exceptionMessage( "055", "Version mismatch: Camunda library version is '{}' and db version is '{}'. " + HINT_TEXT, version, dbVersion ), version, dbVersion); }
public ProcessEngineException missingActivitiTablesException() { return new ProcessEngineException(exceptionMessage( "057", "There are no Camunda tables in the database. " + HINT_TEXT )); }
public ProcessEngineException historicDecisionInputInstancesNotFetchedException() { return new ProcessEngineException(exceptionMessage( "060", "The input instances for the historic decision instance are not fetched. You must call 'includeInputs()' on the query to enable fetching." )); }
public BadUserRequestException invalidResourceForPermission(String resourceType, String permission) { return new BadUserRequestException(exceptionMessage( "086", "The resource type '{}' is not valid for '{}' permission.", resourceType, permission )); }
public ProcessEngineException alreadyMarkedEntityInEntityCacheException(String id, Class<? extends DbEntity> entityClass, DbEntityState state) { return new ProcessEngineException(exceptionMessage( "003", "Inserting an entity with Id '{}' and type '{}' which is already marked with state '{}'", id, entityClass, state )); }
public OptimisticLockingException concurrentUpdateDbEntityException(DbOperation operation) { return new OptimisticLockingException(exceptionMessage( "005", "Execution of '{}' failed. Entity was updated by another transaction concurrently.", operation )); }
public ProcessEngineException loadModelException(String type, String modelName, String id, Throwable cause) { return new ProcessEngineException(exceptionMessage( "023", "Could not load {} Model for {} definition with id '{}'.", type, modelName, id ), cause); }
public ProcessEngineException requiredAsyncContinuationException(String id) { return new ProcessEngineException(exceptionMessage( "033", "Asynchronous Continuation for activity with id '{}' requires a message job declaration", id )); }
public ProcessEngineException castModelInstanceException(ModelElementInstance instance, String toElement, String type, String namespace, Throwable cause) { return new ProcessEngineException(exceptionMessage( "036", "Cannot cast '{}' to '{}'. Element is of type '{}' with namespace '{}'.", instance, toElement, type, namespace ), cause); }
public WrongDbException wrongDbVersionException(String version, String dbVersion) { return new WrongDbException(exceptionMessage( "055", "Version mismatch: Camunda library version is '{}' and db version is '{}'. " + HINT_TEXT, version, dbVersion ), version, dbVersion); }
public BadUserRequestException invalidResourceForPermission(String resourceType, String permission) { return new BadUserRequestException(exceptionMessage( "086", "The resource type '{}' is not valid for '{}' permission.", resourceType, permission )); }
public BadUserRequestException invalidResourceForAuthorization(int resourceType, String permission) { return new BadUserRequestException(exceptionMessage( "087", "The resource type with id:'{}' is not valid for '{}' permission.", resourceType, permission )); }
public ProcessEngineException invokeSchemaResourceToolException(int length) { return new ProcessEngineException(exceptionMessage( "022", "Schema resource tool was invoked with '{}' parameters." + "Schema resource tool must be invoked with exactly 2 parameters:" + "\n - 1st parameter is the process engine configuration file," + "\n - 2nd parameter is the schema resource file name", length )); }
public ProcessEngineException historicDecisionOutputInstancesNotFetchedException() { return new ProcessEngineException(exceptionMessage( "061", "The output instances for the historic decision instance are not fetched. You must call 'includeOutputs()' on the query to enable fetching." )); }
public ProcessEngineException restoreProcessInstanceException(ExecutionEntity entity) { return new ProcessEngineException(exceptionMessage( "034", "Can only restore process instances. This method must be called on a process instance execution but was called on '{}'", entity.toString() )); }
public ProcessEngineException missingTableException(List<String> components) { return new ProcessEngineException(exceptionMessage( "056", "Tables are missing for the following components: {}", buildStringFromList(components) )); }
public ProcessEngineException wrongBatchResultsSizeException(List<DbOperation> operationsToFlush) { return new ProcessEngineException(exceptionMessage( "084", "Exception while executing Batch Database Operations: the size of Batch Result does not correspond to the number of flushed operations. Flush summary: \n {}", buildStringFromList(operationsToFlush) )); }