The Artima Developer Community
Sponsored Link

Legacy Design Forum
Designing with Exceptions



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.


runtime exception

Posted by Gary on August 16, 2001 at 10:25 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
> }


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us