exceptionFormat

Type: Integer

The exceptionFormat property of the JadeRestService class enables you to control the format used to generate REST service call exceptions.

You can specify the required JadeRestService class OutputFormat_ constant value in the exceptionFormat property (for example, in the create method of your JadeRestService subclass) if you want to change the exception output format at run time.

The class constant values for the exception output format are listed in the following table.

JadeRestService Class Constant Value Exceptions are in...
OutputFormat_Json 0 JSON (Microsoft JSON) format
OutputFormat_Xml 1 XML format (the default)
OutputFormat_Json_NewtonSoft 2 JSONN (NewtonSoft JSON) format

Any other value (for example, -1) means that exceptions are returned in the format controlled by the received URL.

2018.0.02 (Service Pack 1) and higher