Class HttpException

  • All Implemented Interfaces:
    java.io.Serializable

    public class HttpException
    extends java.lang.RuntimeException
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int statusCode  
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpException​(int statusCode)
      Creates a new HttpException instance
      HttpException​(int statusCode, java.lang.String message)
      Creates a new HttpException instance
      HttpException​(HttpStatus statusCode)
      Creates a new HttpException instance
      HttpException​(HttpStatus statusCode, java.lang.String message)
      Creates a new HttpException instance
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getStatusCode()  
      • 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
    • Field Detail

      • statusCode

        private final int statusCode
    • Constructor Detail

      • 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,
                             java.lang.String message)
        Creates a new HttpException instance
        Parameters:
        statusCode - The associated status code
        message - The error message
      • HttpException

        public HttpException​(HttpStatus statusCode,
                             java.lang.String message)
        Creates a new HttpException instance
        Parameters:
        statusCode - The associated status code
        message - The error message
    • Method Detail

      • getStatusCode

        public int getStatusCode()
        Returns:
        The statusCode