Documentation Comments
Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.
Reality V15.2 Online Documentation (MoTW) Revision 3
ERETHROW Statement (dbasic_exception_hndlr_erethrow.htm)
A DataBasic ERETHROW statement will pass the last exception to an earlier code level, maintaining the saved exception number, message and return stack information.
ERETHROW
The ERETHROW statement, used in exception handling code, causes the current exception to be passed to the label most recently identified by an ECATCH statement in an earlier code level.
It is almost equivalent to: ETHROW EXCEPT.NUM(), EXCEPT.MSG(), except that it also preserves the saved return stack level.
If ERETHROW is executed when no exception has been thrown, a fatal runtime error B68 will occur.
If no earlier exception catch label has been defined, a fatal runtime error B64 will occur.