package AdaBase is type Error_Modes is (silent, warning, raise_exception); ERRMODE_EXCEPTION : exception; end AdaBase;
This is a connection attribute. It returns the driver setting dictating how errors are handled when encountered. The default is warning which means error messages will be logged by any active loggers, but processing will continue. If this attribute is set to silent then nothing will be logged and processing will continue. In either case, the application has to be designed to handle the associated failed results, otherwise runtime failures will soon follow. The final value of raise_exception will cause the AdaBase.ERRMODE_EXCEPTION exception to be raised whenever an error is encountered.
AdaBase.Driver.Base.[DB].set_trait_error_mode (trait : Error_Modes)
This procedure is used to set the error mode. It can be set anytime.
[DB] is "MySQL.MySQL_Driver", "PostgreSQL.PostgreSQL_Driver", or "SQLite.SQLite_Driver"