org.apache.olingo.odata2.client.core.ep.deserializer

## Class JsonErrorDocumentDeserializer

- java.lang.Object
- - org.apache.olingo.odata2.client.core.ep.deserializer.JsonErrorDocumentDeserializer

-     public class JsonErrorDocumentDeserializer
      extends Object

  Consuming (read / deserialization) for OData error document in JSON format.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JsonErrorDocumentDeserializer()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ODataErrorContext` | `readError(InputStream errorDocument)` Deserialize / read OData error document in ODataErrorContext.

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

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

- - ### Constructor Detail

    - #### JsonErrorDocumentDeserializer

          public JsonErrorDocumentDeserializer()

  - ### Method Detail

    - #### readError

          public ODataErrorContext readError(InputStream errorDocument)
                                      throws EntityProviderException

      Deserialize / read OData error document in ODataErrorContext.
      Parameters:
        `errorDocument` - OData error document in JSON format
      Returns:
        created ODataErrorContext based on input stream content.
      Throws:
        `EntityProviderException` - if an exception during read / deserialization occurs.

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