|
Here is what I do; monitor javaMethod(); on-error reportError(...) endmon It doesn't catch any specific exception, but better than nothing. hope it helps -----Original Message----- From: Bartell, Aaron L. (TC) [mailto:ALBartell@xxxxxxxxxxxxxx] Sent: Monday, July 14, 2003 5:20 PM To: 'RPG programming on the AS400 / iSeries' Subject: RE: Catch Java Exceptions in RPG After reading that I don't feel like I have enough information to build an error trapping routine in RPG (it is very vague as to where you need to specify a procedure pointer for the Exception). Do have something like this working in code that you could share? Aaron Bartell -----Original Message----- From: Shannon O'Donnell [mailto:sodonnell@xxxxxxxxxxxxxxx] Sent: Monday, July 14, 2003 2:55 PM To: RPG programming on the AS400 / iSeries Subject: Re: Catch Java Exceptions in RPG Check http://ublib.boulder.ibm.com/iseries/v5r1/ic2924/books/c0925073.pdf on page 173 about "Handling JNI Exceptions" Shannon O'Donnell ----- Original Message ----- From: "Bartell, Aaron L. (TC)" <ALBartell@xxxxxxxxxxxxxx> To: <rpg400-l@xxxxxxxxxxxx> Sent: Monday, July 14, 2003 2:11 PM Subject: Catch Java Exceptions in RPG > Since the archives seem to be unreachable from my location I will just ask > my question. > > Can you catch thrown Java exceptions from an RPG program that is making use > of Java classes? I looked through the part in the RPG ILE Reference where > they define Java and didn't see anything in there. > > > Aaron Bartell > _______________________________________________ > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > or email: RPG400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. > > > > _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l. _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.