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

public abstract class HttpServiceException extends Exception
An HttpServiceException is the base exception raised by the httpService component.
See Also:
  • Constructor Details

    • HttpServiceException

      protected HttpServiceException(String message, Throwable cause)
      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 message
      cause - underlying cause of the exception, may be null.
    • HttpServiceException

      protected HttpServiceException(String message, Throwable cause, HttpStatus status)
      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 message
      cause - underlying cause of the exception, may be null.
      status - Http response status associated with this exception
  • Method Details

    • getHttpStatus

      public HttpStatus 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