Package de.xima.fc.exceptions
Class NodeSoftErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.xima.fc.exceptions.AbstractXfcException
de.xima.fc.exceptions.WorkflowProcessingException
de.xima.fc.exceptions.NodeSoftErrorException
- All Implemented Interfaces:
com.alibaba.fastjson.serializer.JSONSerializable
,IXfcException
,IJsonLikeObject
,IErrorResultData
,Serializable
public final class NodeSoftErrorException
extends WorkflowProcessingException
implements IErrorResultData, IJsonLikeObject
Indicates that a soft error occurred during the execution of a workflow node. A soft error can be added when
INodeHandler#execute
completes normally. A soft error is similar
to a warning that may indicate issues with the business logic. See ISuccessResultData#getSoftErrors
for more details.- Since:
- 7.0.7
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNodeSoftErrorException
(IDiscriminatedUnionMember<String, ?> errorMember, String message) Creates a new exception with the given data for a soft error that occurred during execution of a node.NodeSoftErrorException
(IDiscriminatedUnionMember<String, ?> errorMember, String message, Throwable cause) Creates a new exception with the given data for a soft error that occurred during execution of a node.NodeSoftErrorException
(IDiscriminatedUnionMember<String, ?> errorMember, Throwable cause) Creates a new exception with the given data for a soft error that occurred during execution of a node. -
Method Summary
Methods inherited from class de.xima.fc.exceptions.WorkflowProcessingException
getDefaultErrorCode, getDefaultMessageKey
Methods inherited from class de.xima.fc.exceptions.AbstractXfcException
getErrorCode, getExceptionData, getLocalizedMessage, getMessageKey, getMessageParams
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.xima.fc.interfaces.workflow.execution.IErrorResultData
getCause, getMessage
Methods inherited from interface de.xima.fc.interfaces.json.IJsonLikeObject
write
-
Constructor Details
-
NodeSoftErrorException
Creates a new exception with the given data for a soft error that occurred during execution of a node.- Parameters:
errorMember
- Data made available by the node when the soft error occurs.message
- Error message describing the error that occurred.
-
NodeSoftErrorException
public NodeSoftErrorException(IDiscriminatedUnionMember<String, ?> errorMember, String message, Throwable cause) Creates a new exception with the given data for a soft error that occurred during execution of a node.- Parameters:
errorMember
- Data made available by the node when the soft error occurs.message
- Error message describing the error that occurred.cause
- Cause that resulted in this exception.
-
NodeSoftErrorException
Creates a new exception with the given data for a soft error that occurred during execution of a node.- Parameters:
errorMember
- Data made available by the node when the soft error occurs.cause
- Cause that resulted in this exception.
-
-
Method Details
-
getPropertyKeys
- Specified by:
getPropertyKeys
in interfaceIJsonLikeObject
- Returns:
- All keys available on the object.
-
getValueAtKey
- Specified by:
getValueAtKey
in interfaceIJsonLikeObject
- Parameters:
key
- One of the keys returned byIJsonLikeObject.getPropertyKeys()
.- Returns:
- The value at the given key.
-
getWorkflowExceptionData
- Specified by:
getWorkflowExceptionData
in interfaceIErrorResultData
- Returns:
- Custom data for the exception type that contain further details on the error. May be
null
in case no data is available.
-
getWorkflowExceptionType
- Specified by:
getWorkflowExceptionType
in interfaceIErrorResultData
- 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.
-
toString
-