Class HttpStatusException

    • Constructor Detail

      • HttpStatusException

        protected HttpStatusException​(int aStatusCode,
                                      String message)
        Instantiates a new http status exception.
        Parameters:
        aStatusCode - the status code
        message - the message
      • HttpStatusException

        public HttpStatusException​(HttpStatusCode aStatusCode,
                                   String aMessage,
                                   String aErrorCode)
        Instantiates a new http status exception.
        Parameters:
        aStatusCode - the status code
        aMessage - the message
        aErrorCode - the error code
      • HttpStatusException

        public HttpStatusException​(HttpStatusCode aStatusCode,
                                   String aMessage,
                                   Throwable aCause,
                                   String aErrorCode)
        Instantiates a new http status exception.
        Parameters:
        aStatusCode - the status code
        aMessage - the message
        aCause - the cause
        aErrorCode - the error code
      • HttpStatusException

        public HttpStatusException​(HttpStatusCode aStatusCode,
                                   String message,
                                   Throwable cause)
        Instantiates a new http status exception.
        Parameters:
        aStatusCode - the status code
        message - the message
        cause - the cause
      • HttpStatusException

        public HttpStatusException​(HttpStatusCode aStatusCode,
                                   String message)
        Instantiates a new http status exception.
        Parameters:
        aStatusCode - the status code
        message - the message
      • HttpStatusException

        public HttpStatusException​(HttpStatusCode aStatusCode,
                                   Throwable aCause,
                                   String aErrorCode)
        Instantiates a new http status exception.
        Parameters:
        aStatusCode - the status code
        aCause - the cause
        aErrorCode - the error code
      • HttpStatusException

        public HttpStatusException​(HttpStatusCode aStatusCode,
                                   Throwable cause)
        Instantiates a new http status exception.
        Parameters:
        aStatusCode - the status code
        cause - the cause
    • Method Detail

      • getStatusCode

        public HttpStatusCode getStatusCode()
        Specified by:
        getStatusCode in interface org.refcodes.mixin.StatusCodeAccessor<HttpStatusCode>