Package de.xima.fc.mdl.workflow
Class WorkflowSoftErrorDescriptor
- java.lang.Object
-
- de.xima.fc.mdl.workflow.WorkflowSoftErrorDescriptor
-
- All Implemented Interfaces:
IWorkflowSoftErrorDescriptor
public final class WorkflowSoftErrorDescriptor extends Object implements IWorkflowSoftErrorDescriptor
POJO implementation ofIWorkflowSoftErrorDescriptor
.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description WorkflowSoftErrorDescriptor(String message, Throwable cause, Consumer<IUnionValueBuilder<String>> errorValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getCause()
Consumer<IUnionValueBuilder<String>>
getErrorValue()
String
getMessage()
-
-
-
Constructor Detail
-
WorkflowSoftErrorDescriptor
public WorkflowSoftErrorDescriptor(String message, Throwable cause, Consumer<IUnionValueBuilder<String>> errorValue)
- Parameters:
message
- Message providing more details about the error.cause
- The exception that caused the soft error. May benull
when not caused by any exception.errorValue
- Function that takes a value builder to create the error value.
-
-
Method Detail
-
getCause
public Throwable getCause()
- Specified by:
getCause
in interfaceIWorkflowSoftErrorDescriptor
- Returns:
- The exception that caused the soft error. May be
null
when not caused by any exception.
-
getErrorValue
public Consumer<IUnionValueBuilder<String>> getErrorValue()
- Specified by:
getErrorValue
in interfaceIWorkflowSoftErrorDescriptor
- Returns:
- Function that takes a value builder to create the error value.
-
getMessage
public String getMessage()
- Specified by:
getMessage
in interfaceIWorkflowSoftErrorDescriptor
- Returns:
- Message providing more details about the error.
-
-