Class OrchestrationError
java.lang.Object
com.vasco.orchestration.client.errors.OrchestrationError
The
OrchestrationError
class is the base class used for asynchronous error management in
the Orchestration SDK.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
return error code attached to the errorreturn the exception attached to the errorint
if the cause is not null and a InternalException we return the initial error code 0 otherwise.void
setErrorCode
(int errorCode) set the error codevoid
setException
(Throwable exception) set the exception
-
Constructor Details
-
OrchestrationError
Constructor- Parameters:
errorCode
- error code attached to the errorexception
- exception returned during a flow execution
-
-
Method Details
-
getErrorCode
public int getErrorCode()return error code attached to the error- Returns:
- error code
-
setErrorCode
public void setErrorCode(int errorCode) set the error code- Parameters:
errorCode
- error code
-
getException
return the exception attached to the error- Returns:
- exception
-
setException
set the exception- Parameters:
exception
- exception
-
getInitialErrorCode
public int getInitialErrorCode()if the cause is not null and a InternalException we return the initial error code 0 otherwise.- Returns:
- the initial error code
-