|
This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
Wrapper class for Exception Handling
Posted by Deuti on March 13, 2001 at 7:07 PM
Hi, I have to handle all the RunTimeExceptions with a custom made Exception class. Like if AppException is my custom Exception class I want whenever a Runtime Exception occurs a person should be able to catch it as catch (AppException e). The code skeleton should be like- main() { func1(); catch(AppException e) {} } funci() { //Runtime Exception occurs }
Replies:
|