Package com.adobe.granite.workflow.model
Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.adobe.granite.workflow.WorkflowException
com.adobe.granite.workflow.model.ValidationException
- All Implemented Interfaces:
Serializable
ValidationException is used to indicate that a
WorkflowModel is not valid.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionValidationException(String message) Constructs a newWorkflowExceptionwith the specified detail message.ValidationException(String message, WorkflowNode node) Constructs a newWorkflowExceptionwith the specified detail message.ValidationException(String message, Throwable cause) Constructs a newWorkflowExceptionwith the specified detail message and cause.ValidationException(Throwable cause) Constructs a newWorkflowExceptionwith the specified cause and a detail message of(cause==null ? null : cause.toString())(which typically contains the class and detail message ofcause). -
Method Summary
Modifier and TypeMethodDescriptiongetNode()Returns theWorkflowNodethat is not valid or null if node could not be determined.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ValidationException
Constructs a newWorkflowExceptionwith the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable).- Parameters:
message- The detail message. The detail message is saved for later retrieval by theThrowable.getMessage()method.
-
ValidationException
Constructs a newWorkflowExceptionwith the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable).- Parameters:
message- The detail message. The detail message is saved for later retrieval by theThrowable.getMessage()method.node- the workflow node
-
ValidationException
Constructs a newWorkflowExceptionwith the specified cause and a detail message of(cause==null ? null : cause.toString())(which typically contains the class and detail message ofcause). This constructor is useful forWorkflowExceptionthat are wrappers for others.Throwable- Parameters:
cause- The cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-
ValidationException
Constructs a newWorkflowExceptionwith the specified detail message and cause.- Parameters:
message- The detail message (which is saved for later retrieval by theThrowable.getMessage()method).cause- The cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-
-
Method Details
-
getNode
Returns theWorkflowNodethat is not valid or null if node could not be determined.- Returns:
- The
WorkflowNodethat is not valid.
-