Package com.day.cq.workflow.model
Class ValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.day.cq.workflow.WorkflowException
-
- com.day.cq.workflow.model.ValidationException
-
- All Implemented Interfaces:
java.io.Serializable
public class ValidationException extends WorkflowException
ValidationException
is used to indicate that aWorkflowModel
is not valid.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValidationException(java.lang.String message)
Constructs a newWorkflowException
with the specified detail message.ValidationException(java.lang.String message, WorkflowNode node)
Constructs a newWorkflowException
with the specified detail message.ValidationException(java.lang.String message, java.lang.Throwable cause)
Constructs a newWorkflowException
with the specified detail message and cause.ValidationException(java.lang.Throwable cause)
Constructs a newWorkflowException
with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause ).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowNode
getNode()
Returns theWorkflowNode
that is not valid or null if node could not be determined.
-
-
-
Constructor Detail
-
ValidationException
public ValidationException(java.lang.String message)
Constructs a newWorkflowException
with 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
public ValidationException(java.lang.String message, WorkflowNode node)
Constructs a newWorkflowException
with 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
public ValidationException(java.lang.Throwable cause)
Constructs a newWorkflowException
with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause ). This constructor is useful forWorkflowException
that are wrappers for other
s.Throwable
- Parameters:
cause
- The cause (which is saved for later retrieval by theThrowable.getCause()
method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
-
ValidationException
public ValidationException(java.lang.String message, java.lang.Throwable cause)
Constructs a newWorkflowException
with 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). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
-
-
Method Detail
-
getNode
public WorkflowNode getNode()
Returns theWorkflowNode
that is not valid or null if node could not be determined.- Returns:
- The
WorkflowNode
that is not valid.
-
-