Package io.serverlessworkflow.api.error
Class Error
- java.lang.Object
-
- io.serverlessworkflow.api.error.Error
-
- All Implemented Interfaces:
Serializable
public class Error extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Error()
No args constructor for use in serializationError(Transition transition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description End
getEnd()
State end definitionString
getErrorRef()
Reference to a unique workflow error definition.List<String>
getErrorRefs()
References one or more workflow error definitions.Transition
getTransition()
(Required)void
setEnd(End end)
State end definitionvoid
setErrorRef(String errorRef)
Reference to a unique workflow error definition.void
setErrorRefs(List<String> errorRefs)
References one or more workflow error definitions.void
setTransition(Transition transition)
(Required)Error
withEnd(End end)
Error
withErrorRef(String errorRef)
Error
withErrorRefs(List<String> errorRefs)
Error
withTransition(Transition transition)
-
-
-
Constructor Detail
-
Error
public Error()
No args constructor for use in serialization
-
Error
public Error(Transition transition)
- Parameters:
transition
-
-
-
Method Detail
-
getErrorRef
public String getErrorRef()
Reference to a unique workflow error definition. Used of errorRefs is not used
-
setErrorRef
public void setErrorRef(String errorRef)
Reference to a unique workflow error definition. Used of errorRefs is not used
-
getErrorRefs
public List<String> getErrorRefs()
References one or more workflow error definitions. Used if errorRef is not used
-
setErrorRefs
public void setErrorRefs(List<String> errorRefs)
References one or more workflow error definitions. Used if errorRef is not used
-
getTransition
public Transition getTransition()
(Required)
-
setTransition
public void setTransition(Transition transition)
(Required)
-
withTransition
public Error withTransition(Transition transition)
-
getEnd
public End getEnd()
State end definition
-
setEnd
public void setEnd(End end)
State end definition
-
-