public class BonitaException extends Exception implements BonitaContextException
RuntimeException
are checked exceptions.
Checked exceptions need to be declared in a method or constructor's throws clause if they can be thrown by the execution of the method or
constructor and propagate outside the method or constructor boundary.Constructor and Description |
---|
BonitaException(String message)
Constructs a new exception with the specified detail message.
|
BonitaException(String message,
Throwable cause)
Constructs a new exception with the specified detail message and cause.
|
BonitaException(Throwable cause)
Constructs a new exception with the specified detail cause.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BonitaException(String message, Throwable cause)
message
- The detail message (which is saved for later retrieval by the Throwable.getMessage()
method).cause
- The cause (which is saved for later retrieval by the Throwable.getCause()
method). (A null value is permitted, and indicates that the
cause is nonexistent or unknown.)public BonitaException(String message)
message
- The detail message (which is saved for later retrieval by the Throwable.getMessage()
method).public BonitaException(Throwable cause)
cause
- The cause (which is saved for later retrieval by the Throwable.getCause()
method). (A null value is permitted, and indicates that the
cause is nonexistent or unknown.)public String getUserName()
getUserName
in interface BonitaContextException
BonitaContextException.getUserName()
public void setUserName(String userName)
setUserName
in interface BonitaContextException
BonitaContextException.setUserName(java.lang.String)
public Map<ExceptionContext,Serializable> getContext()
public void setProcessDefinitionIdOnContext(Long id)
id
- The identifier of the process definition to setpublic void setProcessDefinitionNameOnContext(String name)
name
- The name of the process definition to setpublic void setProcessDefinitionVersionOnContext(String version)
version
- The version of the process definition to setpublic void setProcessInstanceIdOnContext(Long id)
id
- The identifier of the process instance to setpublic void setRootProcessInstanceIdOnContext(Long id)
id
- The identifier of the root process instance to setpublic void setConnectorDefinitionIdOnContext(String id)
id
- The identifier of the connector definitionpublic void setConnectorDefinitionImplementationClassNameOnContext(String name)
name
- The class name of the implementation of the connector definition to setpublic void setConnectorDefinitionVersionOnContext(String version)
version
- The version of the connector definitionpublic void setConnectorActivationEventOnContext(String activationEvent)
activationEvent
- The event which activates the connector to setpublic void setConnectorInstanceIdOnContext(long id)
id
- The identifier of the connector instance to setpublic void setFlowNodeDefinitionIdOnContext(long id)
id
- The identifier of the flow node definition to setpublic void setFlowNodeInstanceIdOnContext(long id)
id
- The identifier of the flow node instance to setpublic void setFlowNodeNameOnContext(String name)
name
- The name of the flow node to setpublic void setMessageInstanceNameOnContext(String name)
name
- The name of the message instance to setpublic void setMessageInstanceTargetProcessOnContext(String name)
name
- The target process name of the message instance to setpublic void setMessageInstanceTargetFlowNodeOnContext(String name)
name
- The target flow node name of the message instance to setpublic void setWaitingMessageEventTypeOnContext(String eventType)
eventType
- The event type of the waiting message instance to setpublic void setDocumentIdOnContext(long id)
id
- The identifier of the documentpublic void setUserIdOnContext(Long userId)
userId
- The identifier of the userpublic void setGroupIdOnContext(Long groupId)
groupId
- The identifier of the grouppublic void setRoleIdOnContext(Long roleId)
roleId
- The identifier of the rolepublic void setDataName(String name)
name
- The name of the datapublic void setDataClassName(String dataClassName)
dataClassName
- The class name of the datapublic String getMessage()
getMessage
in class Throwable
Copyright © 2020 Bonitasoft S.A. All rights reserved.