As a general rule, code C component methods to handle unrecoverable errors as follows:
Write detailed error descriptions to the server log file using JagLog.
Call JagSendMsg to send a descriptive message to the client.
If the component is transactional, call JagDisallowCommit or JagRollbackWork as appropriate.
Return CS_FAIL to indicate failed execution.
Chapter 5, “C Routines Reference,” of the EAServer API Reference contains reference pages for these routines.
Copyright © 2005. Sybase Inc. All rights reserved. |