on 05-28-2009 3:04 PM
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
I now already that one...still expecting new programming techniques...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.