org.apache.olingo.server.api

## Interface ODataContentWriteErrorContext

-     public interface ODataContentWriteErrorContext

  The WriteContentErrorErrorContext is the parameter for the WriteContentErrorCallback. and contains all relevant error information

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Exception` | `getException()` Get the exception which caused this error (as Java exception).
    `ODataLibraryException` | `getODataLibraryException()` Get the exception which caused this error (as ODataLibraryException exception).

- - ### Method Detail

    - #### getException

          Exception getException()

      Get the exception which caused this error (as Java exception). If the cause exception is a ODataLibraryException this method will return the same exception as the `getODataLibraryException()` method.
      Returns:
        the exception which caused this error (as Java exception).

    - #### getODataLibraryException

          ODataLibraryException getODataLibraryException()

      Get the exception which caused this error (as ODataLibraryException exception). If the cause exception is an ODataLibraryException this method will return the same exception as the `getException()` method. If the cause exception is NOT an ODataLibraryException this method will return `NULL`.
      Returns:
        the cause exception if it is an ODataLibraryException otherwise this method will return `NULL`.

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