org.apache.olingo.odata2.api.exception

## Class ODataHttpException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - org.apache.olingo.odata2.api.exception.ODataException
      - - org.apache.olingo.odata2.api.exception.ODataMessageException
        - - org.apache.olingo.odata2.api.exception.ODataHttpException

- All Implemented Interfaces:
    Serializable
  Direct Known Subclasses:
    ODataBadRequestException, ODataConflictException, ODataForbiddenException, ODataInternalServerErrorException, ODataMethodNotAllowedException, ODataNotAcceptableException, ODataNotFoundException, ODataNotImplementedException, ODataPreconditionFailedException, ODataPreconditionRequiredException, ODataServiceUnavailableException, ODataUnsupportedMediaTypeException

      public abstract class ODataHttpException
      extends ODataMessageException

  `ODataMessageException` with a HTTP status code.
  See Also:
    Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static MessageReference` | `COMMON`
    `protected HttpStatusCodes` | `httpStatus`

    - ### Fields inherited from class org.apache.olingo.odata2.api.exception.ODataMessageException

      `errorCode, messageReference`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ODataHttpException(MessageReference messageReference, HttpStatusCodes httpStatus)`
    `ODataHttpException(MessageReference messageReference, HttpStatusCodes httpStatus, String errorCode)`
    `ODataHttpException(MessageReference messageReference, Throwable cause, HttpStatusCodes httpStatus)`
    `ODataHttpException(MessageReference messageReference, Throwable cause, HttpStatusCodes httpStatus, String errorCode)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `HttpStatusCodes` | `getHttpStatus()`

    - ### Methods inherited from class org.apache.olingo.odata2.api.exception.ODataMessageException

      `createMessageReference, getErrorCode, getMessage, getMessageReference`

    - ### Methods inherited from class org.apache.olingo.odata2.api.exception.ODataException

      `getApplicationExceptionCause, getHttpExceptionCause, getMessageExceptionCause, isCausedByApplicationException, isCausedByHttpException, isCausedByMessageException`

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### httpStatus

          protected final HttpStatusCodes httpStatus

    - #### COMMON

          public static final MessageReference COMMON

  - ### Constructor Detail

    - #### ODataHttpException

          public ODataHttpException(MessageReference messageReference,
                                    HttpStatusCodes httpStatus)

    - #### ODataHttpException

          public ODataHttpException(MessageReference messageReference,
                                    HttpStatusCodes httpStatus,
                                    String errorCode)

    - #### ODataHttpException

          public ODataHttpException(MessageReference messageReference,
                                    Throwable cause,
                                    HttpStatusCodes httpStatus)

    - #### ODataHttpException

          public ODataHttpException(MessageReference messageReference,
                                    Throwable cause,
                                    HttpStatusCodes httpStatus,
                                    String errorCode)

  - ### Method Detail

    - #### getHttpStatus

          public HttpStatusCodes getHttpStatus()

Copyright © 2013-2022 The Apache Software Foundation. All Rights Reserved.