You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Christian Amend (JIRA)" <ji...@apache.org> on 2017/03/01 14:51:45 UTC

[jira] [Resolved] (OLINGO-1086) How to control presence of OData error details

     [ https://issues.apache.org/jira/browse/OLINGO-1086?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Amend resolved OLINGO-1086.
-------------------------------------
    Resolution: Information Provided

> How to control presence of OData error details
> ----------------------------------------------
>
>                 Key: OLINGO-1086
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1086
>             Project: Olingo
>          Issue Type: Question
>          Components: odata2-core
>    Affects Versions: V2 2.0.6
>            Reporter: ashish
>            Assignee: Christian Amend
>            Priority: Minor
>
> I'm trying to control the presence of details in error responses from When I  I would like to get something like this:
> {
>   "error": {
>     "code": "Error code",
>     "message": "Message from exception filter",
>     "details": [
>       {
>         "code": "Detail code",
>         "message": "Details here"
>       }
>     ],
>     "innererror": {
>       "message": "Exception message here",
>       "type": "Exception type",
>       "stacktrace": "Stack trace here"
>     }
>   }
> }
> But i am getting like:
> {
>   "error": {
>     "code": "Error code",
>     "message": "Message from exception filter"
>   }
> }
> I Followed https://olingo.apache.org/doc/odata2/tutorials/debug.html for callback method but ODataErrorContext  class do not have any method to set Error_details .
> can you please help me here?
> Thanks in advance.
> Ashish 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)