Class BasicHttpException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.juneau.BasicRuntimeException
org.apache.juneau.http.response.BasicHttpException
All Implemented Interfaces:
Serializable, HttpMessage, HttpResponse
Direct Known Subclasses:
BadRequest, Conflict, ExpectationFailed, FailedDependency, Forbidden, Gone, HttpVersionNotSupported, InsufficientStorage, InternalServerError, LengthRequired, Locked, LoopDetected, MethodNotAllowed, MisdirectedRequest, NetworkAuthenticationRequired, NotAcceptable, NotExtended, NotFound, NotImplemented, PayloadTooLarge, PreconditionFailed, PreconditionRequired, RangeNotSatisfiable, RequestHeaderFieldsTooLarge, ServiceUnavailable, TooManyRequests, Unauthorized, UnavailableForLegalReasons, UnprocessableEntity, UnsupportedMediaType, UpgradeRequired, UriTooLong, VariantAlsoNegotiates

@BeanIgnore public class BasicHttpException extends org.apache.juneau.BasicRuntimeException implements HttpResponse
Basic implementation of the HttpResponse interface for error responses.

Although this class implements the various setters defined on the HttpResponse interface, it's in general going to be more efficient to set the status/headers/content of this bean through the builder.

If the unmodifiable flag is set on this bean, calls to the setters will throw UnsupportedOperationException exceptions.

Notes:
  • Beans are not thread safe unless they're marked as unmodifiable.
See Also: