You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Ramya Vasanth (Jira)" <ji...@apache.org> on 2020/11/19 09:19:00 UTC

[jira] [Created] (OLINGO-1494) OData V2: Serialize error details

Ramya Vasanth created OLINGO-1494:
-------------------------------------

             Summary: OData V2: Serialize error details
                 Key: OLINGO-1494
                 URL: https://issues.apache.org/jira/browse/OLINGO-1494
             Project: Olingo
          Issue Type: New Feature
          Components: odata2-core
            Reporter: Ramya Vasanth


ODataErrorContext does not have an API using which the error response can include inner error details. 2 new API's are added

public Collection<ODataErrorContext> getErrorDetails() {
 return errorDetails;
 }

public void setErrorDetails(Collection<ODataErrorContext> errorDetails) {
 this.errorDetails = errorDetails;
 }

Also a method is added to ContentTypeBasedEntityProvider class so that error responses having inner error details can be serialized

ODataResponse writeErrorDocument(ODataErrorContext context);



--
This message was sent by Atlassian Jira
(v8.3.4#803005)