Class HttpServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
oracle.wcc.ridc.adfca.http.internal.exception.HttpServiceException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BadRequestException,ForbiddenException,InternalServerErrorException,NotAcceptableException,NotFoundException,NotModifiedException,PreconditionFailedException,RedirectionException
An HttpServiceException is the base exception raised by the httpService
component.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpServiceException(String message, Throwable cause) Package and subclass visible constructor.protectedHttpServiceException(String message, Throwable cause, HttpStatus status) Package and subclass visible constructor. -
Method Summary
Modifier and TypeMethodDescriptionThe Http response status associated with this exception, i.e.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpServiceException
Package and subclass visible constructor. The httpService must use the associated HttpServiceExceptionFactory to construct and raise HttpServiceExceptions, to ensure proper logging of the errors.- Parameters:
message- exception messagecause- underlying cause of the exception, may be null.
-
HttpServiceException
Package and subclass visible constructor. The httpService must use the associated HttpServiceExceptionFactory to construct and raise HttpServiceExceptions, to ensure proper logging of the errors.- Parameters:
message- exception messagecause- underlying cause of the exception, may be null.status- Http response status associated with this exception
-
-
Method Details
-
getHttpStatus
The Http response status associated with this exception, i.e. the response status that should result from this exception.- Returns:
- Http response status associated with exception
-