on 12-10-2007 12:58 PM
Is it possible to redirect all exceptions in application to some common error page/view like JSP Error Page?
If some runtime error or user defined exception occurs, then I want to design my application to show all user defined messages from message pool and show in that error page.
-
IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
try {
//bussiness logic or calling function module
} catch (Exception e) {
msgMgr.reportException(e.getLocalizedMessage(), false);
<b> // from here redirect to error page automatically by application</b>
}
Hi Raghu,
1.Double click on the MessagePool.
2.MessageEditor opens, you can define message with key value pair.
3.You can call the messages with key in MessagePool using MessageManeger.
Using the code
catch (Exception e) {
// from here redirect to error page automatically by application
// msgMgr.reportException(e.getLocalizedMessage(), false);
msgMgr.reportMessage(IMessage<COMPONENT>.KEY,null,false);
}
regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can fire a plug to common error page from place where you trace error.
Kind Regards,
Saravanan K
Message was edited by:
Saravanan K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.