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.


Structuring Exceptions

Posted by jaideep ganguli on October 03, 2000 at 8:00 PM

i'm currently working on a large project with many modules/packages.
does it make sense to categorize the exceptions thrown out of the system by module.
for example if i have a PERSON module and an INVENTORY module does it make sense to have abstract classes like PersonException and InventoryException and guarantee that any exception thrown out of these modules will be subclasses of these classes. So for any standard java exceptions thrown out of the module you would wrap it with a subclass of the PersonException or InventoryException.



Sponsored Links

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