Class ResponseAbort


  • public class ResponseAbort
    extends BoxHandlerResponse
    Commands the called to abort the execution. This usually happens if the execution encountered and exception.
    Author:
    lrosenberg
    • Constructor Detail

      • ResponseAbort

        public ResponseAbort()
        Creates a new abort response.
      • ResponseAbort

        public ResponseAbort​(Exception aCause)
        Creates a new abort response with the given code.
        Parameters:
        aCause - source exception.
    • Method Detail

      • getCause

        public Exception getCause()
        Returns the cause of the abort (i.e. the exception).
        Returns:
        cause of the InternalError.
      • getCauseMessage

        public String getCauseMessage()
        Returns the exception's message or null.
        Returns:
        original cause message.