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 whenINodeHandler#executecompletes normally. A soft error is similar to a warning that may indicate issues with the business logic. SeeISuccessResultData#getSoftErrorsfor more details.- Since:
- 7.0.7
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeSoftErrorException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>getPropertyKeys()ObjectgetValueAtKey(String key)ObjectgetWorkflowExceptionData()StringgetWorkflowExceptionType()StringtoString()-
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 Detail
-
NodeSoftErrorException
public NodeSoftErrorException(IDiscriminatedUnionMember<String,?> errorMember, String message)
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
public 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.- Parameters:
errorMember- Data made available by the node when the soft error occurs.cause- Cause that resulted in this exception.
-
-
Method Detail
-
getPropertyKeys
public Collection<String> getPropertyKeys()
- Specified by:
getPropertyKeysin interfaceIJsonLikeObject- Returns:
- All keys available on the object.
-
getValueAtKey
public Object getValueAtKey(String key)
- Specified by:
getValueAtKeyin interfaceIJsonLikeObject- Parameters:
key- One of the keys returned byIJsonLikeObject.getPropertyKeys().- Returns:
- The value at the given key.
-
getWorkflowExceptionData
public Object getWorkflowExceptionData()
- Specified by:
getWorkflowExceptionDatain interfaceIErrorResultData- Returns:
- Custom data for the exception type that contain further details on the error. May be
nullin case no data is available.
-
getWorkflowExceptionType
public String getWorkflowExceptionType()
- Specified by:
getWorkflowExceptionTypein 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.
-
-