java.lang.Object
java.lang.Throwable
java.lang.Exception
org.refcodes.exception.AbstractException
org.refcodes.web.NetException
org.refcodes.web.HttpException
org.refcodes.web.HttpStatusException
- All Implemented Interfaces:
Serializable,org.refcodes.exception.ErrorCodeAccessor,org.refcodes.exception.Trap,org.refcodes.mixin.StatusCodeAccessor<HttpStatusCode>
- Direct Known Subclasses:
BadGatewayException,BadRequestException,ConflictException,ExpectationFailedException,FailedDependencyException,ForbiddenException,GatewayTimeoutException,GoneException,HttpResponseException,HttpVersionNotSupportedException,InsufficientSpaceOnResourceException,InsufficientStorageException,InternalClientErrorException,InternalServerErrorException,LengthRequiredException,LockedException,MethodFailureException,MethodNotAllowedException,MovedPermanentlyException,MovedTemporarilyException,MultipleChoicesException,MultiStatusException,NoContentException,NonAuthoritativeInformationException,NotAcceptableException,NotFoundException,NotImplementedException,NotModifiedException,PartialContentException,PaymentRequiredException,PreconditionFailedException,ProxyAuthenticationRequiredException,ReauthenticationRequiredException,RequestedRangeNotSatisfiableException,RequestTimeoutException,RequestTooLongException,RequestUriTooLongException,ResetContentException,SeeOtherException,ServiceUnavailableException,TemporaryRedirectException,UnassignedStatusCodeException,UnauthorizedException,UnavailableForLegalReasonsException,UnprocessableEntityException,UnsupportedMediaTypeException,UseProxyException,VersionNotSupportedException
public class HttpStatusException extends HttpException implements org.refcodes.mixin.StatusCodeAccessor<HttpStatusCode>
Base exception for HTTP status code related exceptions. Thrown in case a HTTP
response was of an erroneous status.
- See Also:
- Serialized Form
-
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.ErrorCodePropertyNested classes/interfaces inherited from interface org.refcodes.mixin.StatusCodeAccessor
org.refcodes.mixin.StatusCodeAccessor.StatusCodeBuilder<SC extends Object,B extends org.refcodes.mixin.StatusCodeAccessor.StatusCodeBuilder<SC,B>>, org.refcodes.mixin.StatusCodeAccessor.StatusCodeMutator<SC extends Object>, org.refcodes.mixin.StatusCodeAccessor.StatusCodeProperty<SC extends Object> -
Constructor Summary
Constructors Modifier Constructor Description protectedHttpStatusException(int aStatusCode, String message)Instantiates a new http status exception.HttpStatusException(HttpStatusCode aStatusCode, String message)Instantiates a new http status exception.HttpStatusException(HttpStatusCode aStatusCode, String aMessage, String aErrorCode)Instantiates a new http status exception.HttpStatusException(HttpStatusCode aStatusCode, String message, Throwable cause)Instantiates a new http status exception.HttpStatusException(HttpStatusCode aStatusCode, String aMessage, Throwable aCause, String aErrorCode)Instantiates a new http status exception.HttpStatusException(HttpStatusCode aStatusCode, Throwable cause)Instantiates a new http status exception.HttpStatusException(HttpStatusCode aStatusCode, Throwable aCause, String aErrorCode)Instantiates a new http status exception. -
Method Summary
Modifier and Type Method Description HttpStatusCodegetStatusCode()Methods inherited from class org.refcodes.exception.AbstractException
getErrorCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpStatusException
Instantiates a new http status exception.- Parameters:
aStatusCode- the status codemessage- the message
-
HttpStatusException
Instantiates a new http status exception.- Parameters:
aStatusCode- the status codeaMessage- the messageaErrorCode- the error code
-
HttpStatusException
public HttpStatusException(HttpStatusCode aStatusCode, String aMessage, Throwable aCause, String aErrorCode)Instantiates a new http status exception.- Parameters:
aStatusCode- the status codeaMessage- the messageaCause- the causeaErrorCode- the error code
-
HttpStatusException
Instantiates a new http status exception.- Parameters:
aStatusCode- the status codemessage- the messagecause- the cause
-
HttpStatusException
Instantiates a new http status exception.- Parameters:
aStatusCode- the status codemessage- the message
-
HttpStatusException
Instantiates a new http status exception.- Parameters:
aStatusCode- the status codeaCause- the causeaErrorCode- the error code
-
HttpStatusException
Instantiates a new http status exception.- Parameters:
aStatusCode- the status codecause- the cause
-
-
Method Details
-
getStatusCode
- Specified by:
getStatusCodein interfaceorg.refcodes.mixin.StatusCodeAccessor<HttpStatusCode>
-