Class HttpException

    • Constructor Detail

      • HttpException

        public HttpException​(int statusCode)
        Creates an exception with an HTTP status code and empty message.

        Attention: the status code is not verified.

        Parameters:
        statusCode - the status code to set.
      • HttpException

        public HttpException​(int statusCode,
                             String message)
        Creates an exception with an HTTP status code and a message.

        The status code is not verified!

        Parameters:
        statusCode - the status code to set.
        message - the message that can be passed to an HTTP content body.
    • Method Detail

      • getStatusCode

        public int getStatusCode()