Subject when statement error codes
Author aalliana
Hello,

whenever I use the when exception, when any, etc statement in a stored procedure I loose information on what exception is thrown.

I found a document called fb_2_1_errorcodes.pdf that helps me find what kind of error was "catched". i.e.

-836 335544517 except Exception @1

-834 335544508 range_not_found Refresh range number @1 not found

Is there a way I can access the @x values so I can use them in any way? (insert them in a table, etc).

Thanks in advance.

Alejandro