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(String error, Transition transition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCode()
Error code.End
getEnd()
State end definitionString
getError()
Domain-specific error name, or '*' to indicate all possible errors (Required)String
getRetryRef()
References a unique name of a retry definition.Transition
getTransition()
(Required)void
setCode(String code)
Error code.void
setEnd(End end)
State end definitionvoid
setError(String error)
Domain-specific error name, or '*' to indicate all possible errors (Required)void
setRetryRef(String retryRef)
References a unique name of a retry definition.void
setTransition(Transition transition)
(Required)Error
withCode(String code)
Error
withEnd(End end)
Error
withError(String error)
Error
withRetryRef(String retryRef)
Error
withTransition(Transition transition)
-
-
-
Constructor Detail
-
Error
public Error()
No args constructor for use in serialization
-
Error
public Error(String error, Transition transition)
- Parameters:
error
-transition
-
-
-
Method Detail
-
getError
public String getError()
Domain-specific error name, or '*' to indicate all possible errors (Required)
-
setError
public void setError(String error)
Domain-specific error name, or '*' to indicate all possible errors (Required)
-
getCode
public String getCode()
Error code. Can be used in addition to the name to help runtimes resolve to technical errors/exceptions. Should not be defined if error is set to '*'
-
setCode
public void setCode(String code)
Error code. Can be used in addition to the name to help runtimes resolve to technical errors/exceptions. Should not be defined if error is set to '*'
-
getRetryRef
public String getRetryRef()
References a unique name of a retry definition.
-
setRetryRef
public void setRetryRef(String retryRef)
References a unique name of a retry definition.
-
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
-
-