Class OrchestrationError
- java.lang.Object
-
- com.vasco.orchestration.client.errors.OrchestrationError
-
public class OrchestrationError extends java.lang.Object
TheOrchestrationError
class is the base class used for asynchronous error management in the Orchestration SDK.
-
-
Constructor Summary
Constructors Constructor Description OrchestrationError(int errorCode, java.lang.Throwable exception)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getErrorCode()
return error code attached to the errorjava.lang.Throwable
getException()
return the exception attached to the errorint
getInitialErrorCode()
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(java.lang.Throwable exception)
set the exception
-
-
-
Method Detail
-
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
public java.lang.Throwable getException()
return the exception attached to the error- Returns:
- exception
-
setException
public void setException(java.lang.Throwable exception)
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
-
-