Error Handling

All errors from the Adaptive Server database driver for Perl and CT-Lib are propagated into the DBI layer.

Exceptions include errors or warnings that must be reported during driver start-up, when there is no context available yet.

The DBI layer performs basic error reporting when the PrintError attribute is enabled. Use DBI trace method to enable tracing on DBI operations to track program- or system-level problems.

Examples of adding more detailed error messages (server messages) are as follows: