Class HandlerException

    • Constructor Summary

      Constructors 
      Constructor Description
      HandlerException​(java.lang.String msg)
      Creates a new HandlerException object.
      HandlerException​(java.lang.String message, java.lang.Throwable e)
      Creates a new HandlerException object.
      HandlerException​(java.lang.Throwable e)
      Creates a new HandlerException object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getGenericMessage()
      Returns the generic message for this exception.
      int getStatusCode()
      Returns the Status code associated with this exception.
      java.lang.Integer getTaskErrorCode()
      Returns the Task Error Code associated with this exception.
      void setGenericMessage​(java.lang.String genericMessage)
      Sets the generic message for this exception.
      void setStatusCode​(int statusCode)
      Sets the Status code associated with this exception.
      void setTaskErrorCode​(int taskErrCode)
      Sets the Task Error Code for this exception.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • HandlerException

        public HandlerException​(java.lang.String msg)
        Creates a new HandlerException object.
        Parameters:
        msg - Error message
      • HandlerException

        public HandlerException​(java.lang.Throwable e)
        Creates a new HandlerException object.
        Parameters:
        e - Exception
      • HandlerException

        public HandlerException​(java.lang.String message,
                                java.lang.Throwable e)
        Creates a new HandlerException object.
        Parameters:
        message - Error message
        e - Exception
        Since:
        MicroStrategy Web 9.0.0
    • Method Detail

      • getStatusCode

        public int getStatusCode()
        Returns the Status code associated with this exception.
        Returns:
        The Status code associated with this exception.
      • setStatusCode

        public void setStatusCode​(int statusCode)
        Sets the Status code associated with this exception.
        Parameters:
        statusCode - The Status code associated with this exception.
      • getTaskErrorCode

        public java.lang.Integer getTaskErrorCode()
        Returns the Task Error Code associated with this exception.
        Returns:
        The Task Error Code (as an Integer). If null, no error code has been specified.
      • setTaskErrorCode

        public void setTaskErrorCode​(int taskErrCode)
        Sets the Task Error Code for this exception.
        Parameters:
        taskErrCode - An integer, task-specific error code.
      • getGenericMessage

        public java.lang.String getGenericMessage()
        Returns the generic message for this exception.
        Returns:
        The generic message.
      • setGenericMessage

        public void setGenericMessage​(java.lang.String genericMessage)
        Sets the generic message for this exception.
        Parameters:
        genericMessage - generic message