#1 2016-12-30 07:56:22

dexter
Member
Registered: 2015-04-24
Posts: 53

Exception from service

Hi,

my function raises an exception on server side.
Java client receives the JSON object: {  "errorCode":500,  "error":  {"Exception":{"Exception":"Field \"abc\" not found."}}  }

Question is: why there are 2 levels of "Exception"? Shouldn't the second one (field name) be something like "Message" ?
Ex. {  "errorCode":500,  "error":  {"Exception":{"Message":"Field \"abc\" not found."}}  }

Regards,
Alex.

Offline

#2 2017-01-07 10:21:42

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,272
Website

Re: Exception from service

In fact, the second "Exception" is the exception class name, if I remember correctly.

Offline

Board footer

Powered by FluxBB