cancel
Showing results for 
Search instead for 
Did you mean: 

Generalised Event Exception Handler

Former Member
0 Kudos

Hi all experts,

Can anybody plz tell how to create a generalised Exception Handler , so that wenever a exception is generated in the main method the Exception Event Handler shud be initialised to catch the exception for all the exceptions generated at runtime.

I want the Exception Event Handler to catch the exceptions for RFC BAPI,EJB Webservice,etc..as i am using this in my application to give general message at runtime if any exceptions is generated from the try-catch block.

Waiting for the reply.

Regards:

SK

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I now already that one...still expecting new programming techniques...

Former Member
0 Kudos

Hi SK,

There is a general Exception that you can use for all exceptions thrown.

just add this code for any exception you want to catch.



try
{
    // try anything
}
catch(Exception e)
{
   // catch any exception
}

Regards,

Marshall.