Class HttpStatusException

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.refcodes.exception.ErrorCodeAccessor

        org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B extends org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B>>, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeMutator, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeProperty
      • Nested classes/interfaces inherited from interface org.refcodes.mixin.StatusCodeAccessor

        org.refcodes.mixin.StatusCodeAccessor.StatusCodeBuilder<SC extends java.lang.Object,B extends org.refcodes.mixin.StatusCodeAccessor.StatusCodeBuilder<SC,B>>, org.refcodes.mixin.StatusCodeAccessor.StatusCodeMutator<SC extends java.lang.Object>, org.refcodes.mixin.StatusCodeAccessor.StatusCodeProperty<SC extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      HttpStatusCode getStatusCode()
      • Methods inherited from class org.refcodes.exception.AbstractException

        getErrorCode
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
    • Constructor Detail

      • HttpStatusException

        public HttpStatusException​(HttpStatusCode aStatusCode,
                                   java.lang.String aMessage,
                                   java.lang.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,
                                   java.lang.String aMessage,
                                   java.lang.Throwable aCause,
                                   java.lang.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,
                                   java.lang.String message,
                                   java.lang.Throwable cause)
        Instantiates a new http status exception.
        Parameters:
        aStatusCode - the status code
        message - the message
        cause - the cause
      • HttpStatusException

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

        public HttpStatusException​(HttpStatusCode aStatusCode,
                                   java.lang.Throwable aCause,
                                   java.lang.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,
                                   java.lang.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>