Class OrchestrationWarning


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

      Constructors 
      Constructor Description
      OrchestrationWarning​(int warningCode, java.lang.Throwable exception)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable getException()
      return the exception attached to the warning
      int getInitialErrorCode()
      if the cause is not null and a InternalException we return the initial error code 0 otherwise.
      int getWarningCode()
      return warning code attached to the warning
      void setException​(java.lang.Throwable exception)
      set the exception
      void setWarningCode​(int warningCode)
      set the warning code
      • Methods inherited from class java.lang.Object

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

      • OrchestrationWarning

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

      • 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 java.lang.Throwable getException()
        return the exception attached to the warning
        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