ashish created OLINGO-1086:
------------------------------
Summary: 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
Priority: Blocker
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)