Class OrchestrationError


  • public class OrchestrationError
    extends java.lang.Object
    The OrchestrationError 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 error
      java.lang.Throwable getException()
      return the exception attached to the error
      int 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 code
      void setException​(java.lang.Throwable exception)
      set the exception
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OrchestrationError

        public OrchestrationError​(int errorCode,
                                  java.lang.Throwable exception)
        Constructor
        Parameters:
        errorCode - error code attached to the error
        exception - exception returned during a flow execution
    • 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