Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to get type and message of custom exception into variable [CORE2382] #2804

Closed
firebird-automations opened this issue Mar 20, 2009 · 5 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Bjoern Reimer (bnreimer)

Is related to CORE2040

Votes: 7

How can I fetch the message text of an exception in an when-block?

Given I raise an exception with a message inside a trigger or an
stored procedure and I call this procedure from another procedure or
the trigger is fired when modifying data vie a stored procedure.

GDSCODE and SQLCODE are both zero. There are no more variables I can check.

Please add a possibility to get the name and message of the exception into a variable e.G. EXTYPE and EXMESSAGE and handle the variables like GDSCODE and SQLCODE

@firebird-automations
Copy link
Collaborator Author

Modified by: @mrotteveel

Link: This issue is related to CORE2040 [ CORE2040 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: Alexander (as2714)

Support! Need a variable code and error text

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

Closed in favor of CORE2040.

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Duplicate [ 3 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant