Class HttpStatusRuntimeException

All Implemented Interfaces:
Serializable, org.refcodes.exception.ErrorCodeAccessor, org.refcodes.exception.Trap, org.refcodes.mixin.StatusCodeAccessor<HttpStatusCode>, UrlAccessor
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>, UrlAccessor
See Also:
  • Field Details

  • Constructor Details

    • HttpStatusRuntimeException

      public HttpStatusRuntimeException(String aMessage, HttpStatusCode aStatusCode, String aErrorCode)
      Parameters:
      aStatusCode - The status code involved in this exception.
    • HttpStatusRuntimeException

      public HttpStatusRuntimeException(String aMessage, HttpStatusCode aStatusCode, Throwable aCause, String aErrorCode)
      Parameters:
      aStatusCode - The status code involved in this exception.
    • HttpStatusRuntimeException

      public HttpStatusRuntimeException(String aMessage, HttpStatusCode aStatusCode, Throwable aCause)
      Parameters:
      aStatusCode - The status code involved in this exception.
    • HttpStatusRuntimeException

      public HttpStatusRuntimeException(String aMessage, HttpStatusCode aStatusCode)
      Parameters:
      aStatusCode - The status code involved in this exception.
    • HttpStatusRuntimeException

      public HttpStatusRuntimeException(HttpStatusCode aStatusCode, Throwable aCause, String aErrorCode)
      Parameters:
      aStatusCode - The status code involved in this exception.
    • HttpStatusRuntimeException

      public HttpStatusRuntimeException(HttpStatusCode aStatusCode, Throwable aCause)
      Parameters:
      aStatusCode - The status code involved in this exception.
    • HttpStatusRuntimeException

      public HttpStatusRuntimeException(String aMessage, HttpStatusCode aStatusCode, Url aUrl, String aErrorCode)
      Parameters:
      aStatusCode - The status code involved in this exception.
      aUrl - The URL involved in this exception.
    • HttpStatusRuntimeException

      public HttpStatusRuntimeException(String aMessage, HttpStatusCode aStatusCode, Url aUrl, Throwable aCause, String aErrorCode)
      Parameters:
      aStatusCode - The status code involved in this exception.
      aUrl - The URL involved in this exception.
    • HttpStatusRuntimeException

      public HttpStatusRuntimeException(String aMessage, HttpStatusCode aStatusCode, Url aUrl, Throwable aCause)
      Parameters:
      aStatusCode - The status code involved in this exception.
      aUrl - The URL involved in this exception.
    • HttpStatusRuntimeException

      public HttpStatusRuntimeException(String aMessage, HttpStatusCode aStatusCode, Url aUrl)
      Parameters:
      aStatusCode - The status code involved in this exception.
      aUrl - The URL involved in this exception.
    • HttpStatusRuntimeException

      public HttpStatusRuntimeException(HttpStatusCode aStatusCode, Url aUrl, Throwable aCause, String aErrorCode)
      Parameters:
      aStatusCode - The status code involved in this exception.
      aUrl - The URL involved in this exception.
    • HttpStatusRuntimeException

      public HttpStatusRuntimeException(HttpStatusCode aStatusCode, Url aUrl, Throwable aCause)
      Parameters:
      aStatusCode - The status code involved in this exception.
      aUrl - The URL involved in this exception.
  • Method Details

    • getStatusCode

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

      public Url getUrl()
      Retrieves the Url from the Url property.
      Specified by:
      getUrl in interface UrlAccessor
      Returns:
      The Url stored by the Url property.
    • getPatternArguments

      public Object[] getPatternArguments()
      Specified by:
      getPatternArguments in interface org.refcodes.exception.Trap