Skip to Content
0

Class based Exception handling in nested method calls

Sep 20, 2017 at 06:32 AM

50

avatar image
Former Member

Hello,

I have used nested method calls in a report and implemented class based exception in one of the methods.

So the program flow is : REPORT->METHOD1->METHOD2.

Method1 has been called inside a try catch block in the report.

So, is it possible to catch an exception triggered in method 2 directly in the report.?

Basically, I don't want to handle exceptions in method 1. I want to handle all exceptions in method 1 and method 2 in the report.

Tried this, but received runtime errors if exception in method 2 is not handled in method 1 (even though the call to method1 is written in a try catch block )

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Tom Wan
Jun 12 at 06:38 AM
0

Hello

I think in your scenario the exception happened in METHOD2 should be catched.

Could you please attach your code to the blog?


Regards

Tom

Share
10 |10000 characters needed characters left characters exceeded