Skip to content

Allow exception name and possibly exception text to be determined within a "WHEN ANY" error handling block [CORE2040] #947

@firebird-automations

Description

@firebird-automations

Submitted by: Alastair Breingan (alb)

Is duplicated by CORE3254
Relate to CORE2382

Votes: 28

Firebird allows GDSCODE and SQLCODE to be retrieved when handling errors, but not the exception name and text, which will normally be much more common.

This does not allow for a generic error handling routine, which, for example might log the error and re-signal the exception, or for the more user-friendly reporting of all validation errors raised by a trigger (rather than just the first).

Please note that while the text is useful the name is the critical part as the text can always be retrieved from the system tables.

Commits: ebd0d3c

====== Test Details ======

See functional\exception\handling_name_and_message.fbt

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions