18.7.2 Database error accessors

Three functions are provided which access slots of sql-database-error , allowing you to discover more about the actual error that occurred.

sql-error-error-id and sql-error-secondary-error-id return primnary and secondary error identifiers. If you use these, please read the detailed description in the LispWorks Reference Manual .

sql-error-database-message is a string (maybe nil ) returned by the foreign code.

LispWorks User Guide - 21 Jul 2006