Skip to Content
avatar image
Former Member

Class based Exception handling in nested method calls

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 )

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 12 at 06:38 AM

    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

    Add comment
    10|10000 characters needed characters exceeded