error_handler event

Configure this event to indicate when a transmission fails or was not confirmed. For example, when a transmission fails, you can use this event to insert a row in an audit table or to send a push notification.

The following table details the parameters that can be captured using the error_handler event:

Script parameter Type Description
request_option (out) Integer

Controls what the Notifier does to the push request after the error handler returns. The output can be one of the following values:

  • 0: Perform default action based on the error code and log the error.
  • 1: Do nothing.
  • 2: Execute the request_delete event.
  • 3: Attempt to deliver to a secondary gateway.
error_code (in) Integer

Use one of the following values for the error code:

  • -1: The request timed out with confirmation of success.
  • -8: An error occurred during delivery attempt.
request_id (in) Integer Identifies the request.
gateway (in) Varchar Specifies the gateway associated with the push request.
address (in) Varchar Specifies the address associated with the push request.
subject (in) Varchar Specifies the subject associated with the push request.
content (in) Varchar Specifies the content associated with the push request.
Note

This event requires the use of a system procedure. You can not configure this event directly using Sybase Central. See MobiLink server settings for server-initiated synchronization.

 See also
 Example