Class OrchestrationWarning

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

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

    • OrchestrationWarning

      public OrchestrationWarning(int warningCode, Throwable exception)
      Constructor
      Parameters:
      warningCode - warning code attached to the warning
      exception - exception returned during a flow execution
  • Method Details

    • getWarningCode

      public int getWarningCode()
      return warning code attached to the warning
      Returns:
      warning code
    • setWarningCode

      public void setWarningCode(int warningCode)
      set the warning code
      Parameters:
      warningCode - warning code
    • getException

      public Throwable getException()
      return the exception attached to the warning
      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