Type: info
Title: ::connectivity::SQLError
Posted by: [EMAIL PROTECTED]
Affected: [EMAIL PROTECTED],[EMAIL PROTECTED],-
Effective from: CWS dba24c
*Summary*
--------
+ <connectivity/sqlerror.hxx>
+ class ::connectivity::SQLError
*Description*
-------------
::connectivity/SQLError has been introduced for handling database
related errors in Base's core components.
It provides methods to retrieve standard error messages (possibly
parametrized with runtime values), SQL states, and error codes, for
standard error conditions (see css.sdb.ErrorCondition). Also, it can
provide and even raise standard SQLExceptions (or derived classes) for
given error conditions and given error contexts.
For instance, a line such as (pidgin notation)
SQLError aError( m_aContext );
aError.raiseException( css.sdb.ErrorCondition.DB_INVALID_SQL_NAME );
would raise the proper exception in case the user entered a name which
is no valid SQL name, with the proper SQL state and error code.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]