Firebird Documentation Index → Firebird 2.0 Language Ref. Update → DDL statements → CREATE EXCEPTION |
Table of Contents
Find a more recent version at Firebird 5.0 Language Reference: EXCEPTION
Available in: DSQL, ESQL
Changed in: 2.0
Description: In Firebird 2.0 and higher, the maximum length of the exception message has been raised from 78 to 1021.
Example:
create exception Ex_TooManyManagers 'Too many managers: An attempt was made to create more managers than the maximum defined in the Limits table. If you really need to create more managers than you have now, raise the limit first. However, please consult your department''s manager before doing so. Otherwise, your decision may be overturned later and the additional manager(s) removed.'
The maximum exception message length depends on a certain system table field.
Therefore, pre-2.0 databases need to be backed up and restored under Firebird
2.x
before they can store exception messages of up to 1021
bytes.
Firebird Documentation Index → Firebird 2.0 Language Ref. Update → DDL statements → CREATE EXCEPTION |