org.apache.olingo.server.api.processor

## Interface ErrorProcessor

- All Superinterfaces:
    Processor
  All Known Implementing Classes:
    DefaultProcessor

      public interface ErrorProcessor
      extends Processor

  Processor which is called if any error/exception occurs inside the library or another processor.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `processError(ODataRequest request, ODataResponse response, ODataServerError serverError, ContentType responseFormat)` Processes an error/exception.

    - ### Methods inherited from interface org.apache.olingo.server.api.processor.Processor

      `init`

- - ### Method Detail

    - #### processError

          void processError(ODataRequest request,
                            ODataResponse response,
                            ODataServerError serverError,
                            ContentType responseFormat)

      Processes an error/exception. MUST NOT throw an exception!
      Parameters:
        `request` - OData request object containing raw HTTP information
        `response` - OData response object for collecting response data
        `serverError` - the server error
        `responseFormat` - requested content type after content negotiation

Copyright © 2013–2022 The Apache Software Foundation. All rights reserved.