Class AbortWithHttpErrorCodeException

    • Constructor Detail

      • AbortWithHttpErrorCodeException

        public AbortWithHttpErrorCodeException​(int errorCode,
                                               String message)
        Constructor
        Parameters:
        errorCode - the servlet error code; use one of the HttpServletResponse constants
        message - the optional message to send to the client
        See Also:
        HttpServletResponse
      • AbortWithHttpErrorCodeException

        public AbortWithHttpErrorCodeException​(int errorCode)
        Constructor
        Parameters:
        errorCode - the servlet error code; use one of the HttpServletResponse constants
        See Also:
        HttpServletResponse
    • Method Detail

      • getErrorCode

        public int getErrorCode()
        Gets the error code.
        Returns:
        errorCode
        See Also:
        HttpServletResponse