Class OrchestrationError

java.lang.Object
com.vasco.orchestration.client.errors.OrchestrationError

public class OrchestrationError extends Object
The OrchestrationError class is the base class used for asynchronous error management in the Orchestration SDK.
  • Constructor Details

    • OrchestrationError

      public OrchestrationError(int errorCode, Throwable exception)
      Constructor
      Parameters:
      errorCode - error code attached to the error
      exception - 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

      public Throwable getException()
      return the exception attached to the error
      Returns:
      exception
    • setException

      public void setException(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