Class HttpException

All Implemented Interfaces:
Serializable

public class HttpException extends RuntimeException
See Also:
  • Field Details

    • statusCode

      private final int statusCode
  • Constructor Details

    • HttpException

      public HttpException(int statusCode)
      Creates a new HttpException instance
      Parameters:
      statusCode - The associated status code
    • HttpException

      public HttpException(HttpStatus statusCode)
      Creates a new HttpException instance
      Parameters:
      statusCode - The associated status code
    • HttpException

      public HttpException(int statusCode, String message)
      Creates a new HttpException instance
      Parameters:
      statusCode - The associated status code
      message - The error message
    • HttpException

      public HttpException(HttpStatus statusCode, String message)
      Creates a new HttpException instance
      Parameters:
      statusCode - The associated status code
      message - The error message
  • Method Details

    • getStatusCode

      public int getStatusCode()
      Returns:
      The statusCode