ErrorBehavior
- Last Updated: May 15, 2020
- 1 minute read
- DataDirect Connectors
- JDBC
- IBM Db2 5.1
- MySQL 5.1
- Progress OpenEdge 5.1
- SAP Sybase 5.1
- Documentation
Purpose
Determines how the driver handles errors that are returned from stored procedures.
Valid Values
exception | warning |
raiseerrorwarning
Behavior
If set to exception, the driver throws an exception when it encounters
stored procedure errors, including RAISERRORs.
If set to warning, the driver returns stored procedure errors, including
RAISERRORs, as SQLWarnings.
If set to raiseerrorwarning, the driver returns RAISERRORs as SQLWarnings
and throws exceptions for other stored procedure errors.
Notes
- By default, older versions of the Sybase driver converted errors returned from a stored
procedure into SQLWarnings. Applications that relied on the driver converting errors to
warnings can revert to that behavior by setting
ErrorBehavior=
warning.
Default
exception
Data Type
String