Package de.xima.fc.exceptions
Class NodeThrewException
- 
- All Implemented Interfaces:
- IXfcException,- IBaseCompletionResult,- IErrorResultData,- IExceptionalCompletionResult,- Serializable
 
 public final class NodeThrewException extends AbstractAbruptCompletionException implements IExceptionalCompletionResult Indicates that execution of a workflow node ended abruptly via a throw statement, including exceptions thrown by the workflow runtime engine.Essentially, this is what you should use when you want to throw an exception that users can catch via try-catchnode.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description NodeThrewException(WorkflowNode node, Object alwaysData, IDiscriminatedUnionMember<String,?> errorData, IWorkflowFileValue fileValue, String message)Creates a new exception with the given data for a node that wants to end abruptly by throwing.NodeThrewException(WorkflowNode node, Object alwaysData, IDiscriminatedUnionMember<String,?> errorData, IWorkflowFileValue fileValue, String message, Throwable cause)Creates a new exception with the given data for a node that wants to end abruptly by throwing.NodeThrewException(WorkflowNode node, Object alwaysData, IDiscriminatedUnionMember<String,?> errorData, IWorkflowFileValue fileValue, Throwable cause)Creates a new exception with the given data for a node that wants to end abruptly by throwing.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetWorkflowExceptionData()StringgetWorkflowExceptionType()- 
Methods inherited from class de.xima.fc.exceptions.AbstractAbruptCompletionExceptiongetAlwaysValue, getFileValue, getNode
 - 
Methods inherited from class de.xima.fc.exceptions.WorkflowProcessingExceptiongetDefaultErrorCode, getDefaultMessageKey
 - 
Methods inherited from class de.xima.fc.exceptions.AbstractXfcExceptiongetErrorCode, getExceptionData, getLocalizedMessage, getMessageKey, getMessageParams
 - 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface de.xima.fc.interfaces.workflow.execution.IBaseCompletionResultgetAlwaysValue, getFileValue, getNode
 - 
Methods inherited from interface de.xima.fc.interfaces.workflow.execution.IErrorResultDatagetCause, getMessage
 
- 
 
- 
- 
- 
Constructor Detail- 
NodeThrewExceptionpublic NodeThrewException(WorkflowNode node, Object alwaysData, IDiscriminatedUnionMember<String,?> errorData, IWorkflowFileValue fileValue, String message) Creates a new exception with the given data for a node that wants to end abruptly by throwing.- Parameters:
- node- Node that throws this exception.
- alwaysData- Data made available by the node irrespective of how it ends.
- errorData- Data made available by the node when it ends abruptly by throwing an exception.
- fileValue- List of files made available by the node.
- message- Error message describing the error that occurred.
 
 - 
NodeThrewExceptionpublic NodeThrewException(WorkflowNode node, Object alwaysData, IDiscriminatedUnionMember<String,?> errorData, IWorkflowFileValue fileValue, String message, Throwable cause) Creates a new exception with the given data for a node that wants to end abruptly by throwing.- Parameters:
- node- Node that throws this exception.
- alwaysData- Data made available by the node irrespective of how it ends.
- errorData- Data made available by the node when it ends abruptly by throwing an exception.
- fileValue- List of files made available by the node.
- message- Error message describing the error that occurred.
- cause- Cause that resulted in this exception.
 
 - 
NodeThrewExceptionpublic NodeThrewException(WorkflowNode node, Object alwaysData, IDiscriminatedUnionMember<String,?> errorData, IWorkflowFileValue fileValue, Throwable cause) Creates a new exception with the given data for a node that wants to end abruptly by throwing.- Parameters:
- node- Node that throws this exception.
- alwaysData- Data made available by the node irrespective of how it ends.
- errorData- Data made available by the node when it ends abruptly by throwing an exception.
- fileValue- List of files made available by the node.
- cause- Cause that resulted in this exception.
 
 
- 
 - 
Method Detail- 
getWorkflowExceptionDatapublic Object getWorkflowExceptionData() - Specified by:
- getWorkflowExceptionDatain interface- IErrorResultData
- Returns:
- Custom data for the exception type that contain further details on the error. May be nullin case no data is available.
 
 - 
getWorkflowExceptionTypepublic String getWorkflowExceptionType() - Specified by:
- getWorkflowExceptionTypein interface- IErrorResultData
- Returns:
- Describes the type of error that occurred during the execution of a workflow node. Empty string for a general error that cannot be classified further.
 
 
- 
 
-