|
Duane,
in java and C# you simply throw the exception. there is no relative
invocation entry that the exception is thrown to. If the calling
method does not catch the exception, that method is shut down and the
exception is effectively thrown to the next method down the call
stack.
In C#, the try { .... } finally { ... } construct guarantees that the
finally code will always run after the completion of the try code. I
think you code try {... } catch ( ApplicationException excp ) { ... }
finally { ... } to add exception handlers to the mix.
In RPG ILE we can do the same thing with a mix of MONITOR and CEExxxx
invocation exit handlers. It just does not read as well.
-Steve
your monitor code will not run in the following situations:
- you call a COBOL program and it uses STOP RUN to exit.
- the called procedure sends an *ESCAPE message back to the caller
of your procedure
- the job is ended
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.