The Client Object API defines server-side and client-side exceptions.
Server-Side Exceptions
Exceptions thrown on the Unwired Server are logged in both the server log and in LogRecord. For LogRecord, the exception gets downloaded to the device automatically during synchronization.
HTTP Error Codes
Unwired Server examines the EIS code received in a server response message and maps it to a logical HTTP error code, if a corresponding error code exists. If no corresponding code exists, the 500 code is assigned to signify either a Sybase Unwired Platform internal error, or an unrecognized EIS error. The EIS code and HTTP error code values are stored in log records.
Mapping of EIS Codes to Logical HTTP Error Codes
The following is a list of SAPĀ® error codes mapped to HTTP error codes. SAP error codes which are not listed map by default to HTTP error code 500.
Client-Side Exceptions
Device applications are responsible for catching and handling exceptions thrown by the client object API.