An exception that occurs during the execution of a
JSON (Microsoft JSON), the response is formatted as follows.
{"__type":"Fault", "errorCode":"<error number>", "errorItem":"<Exception type>", "errorText":"<exception description>"}
JSONN (NewtonSoft JSON), the response is formatted as follows.
{"$type":"Fault", "errorCode":"<error number>", "errorItem":"<Exception type>", "errorText":"<exception description>"}
The following example displays the JSON XML that is returned if exception
<?xml version="1.0" encoding="UTF-8"?> <Fault> <errorCode>1035</errorCode> <errorItem>NormalException</errorItem> <errorText>String too long</errorText> </Fault>
The XML style is required because JSON does not identify the name of the entity being returned.
There are a number of exceptions that are specific to the processing of a REST request. The following example displays the XML that is returned if the
<?xml version="1.0" encoding="UTF-8"?> <Fault> <errorCode>11106</errorCode> <errorItem>The signature of Method 'RestService::getClient' does not match the url data provided: (2) primitive parameters.</errorItem> <errorText>The signature of the called Rest Services method does not match the supplied url entities</errorText> </Fault>
For more details about the exceptions that are specific to JADE REST requests, see "