Class HttpStatusRuntimeException

All Implemented Interfaces:
Serializable, org.refcodes.exception.ErrorCodeAccessor, org.refcodes.exception.Trap, org.refcodes.mixin.StatusCodeAccessor<HttpStatusCode>
Direct Known Subclasses:
BadGatewayRuntimeException, BadRequestRuntimeException, ConflictRuntimeException, ExpectationFailedRuntimeException, FailedDependencyRuntimeException, ForbiddenRuntimeException, GatewayTimeoutRuntimeException, GoneRuntimeException, HttpResponseRuntimeException, HttpVersionNotSupportedRuntimeException, InsufficientSpaceOnResourceRuntimeException, InsufficientStorageRuntimeException, InternalClientErrorRuntimeException, InternalServerErrorRuntimeException, LengthRequiredRuntimeException, LockedRuntimeException, MethodFailureRuntimeException, MethodNotAllowedRuntimeException, MovedPermanentlyRuntimeException, MovedTemporarilyRuntimeException, MultipleChoicesRuntimeException, MultiStatusRuntimeException, NoContentRuntimeException, NonAuthoritativeInformationRuntimeException, NotAcceptableRuntimeException, NotFoundRuntimeException, NotImplementedRuntimeException, NotModifiedRuntimeException, PartialContentRuntimeException, PaymentRequiredRuntimeException, PreconditionFailedRuntimeException, ProxyAuthenticationRequiredRuntimeException, ReauthenticationRequiredRuntimeException, RequestedRangeNotSatisfiableRuntimeException, RequestTimeoutRuntimeException, RequestTooLongRuntimeException, RequestUriTooLongRuntimeException, ResetContentRuntimeException, SeeOtherRuntimeException, ServiceUnavailableRuntimeException, TemporaryRedirectRuntimeException, UnassignedStatusCodeRuntimeException, UnauthorizedRuntimeException, UnavailableForLegalReasonsRuntimeException, UnprocessableEntityRuntimeException, UnsupportedMediaTypeRuntimeException, UseProxyRuntimeException, VersionNotSupportedRuntimeException

public class HttpStatusRuntimeException extends HttpRuntimeException implements org.refcodes.mixin.StatusCodeAccessor<HttpStatusCode>
The Class HttpStatusRuntimeException.
See Also:
  • Constructor Details

    • HttpStatusRuntimeException

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

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

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

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

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

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

      public HttpStatusRuntimeException(HttpStatusCode aStatusCode, Throwable cause)
      Instantiates a new http status runtime exception.
      Parameters:
      aStatusCode - the status code
      cause - the cause
  • Method Details

    • getStatusCode

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