How many exception classes do you define?

How many exception classes do you define?

Old forum URL: forums.lhotka.net/forums/t/6235.aspx


Gravy posted on Thursday, January 22, 2009

Hi,

I'm just looking for peoples thoughts on their use of application exception classes they may create. In particilar I'm wondering what general opinion people have for:

1. Do you find that you business library has relatively few 'Application Exceptions' defined and there is usually one type that is thrown and this type contains a value indicating the specific reason?

2. Do you find that almost all exceptions that can occur are either DataPoralExceptions or ValidationExceptions?

3. Do you have many exception derived classes specific to each individual area of the application?

I'd be interested in hearing what people have to say.

Regards

Graham

ajj3085 replied on Thursday, January 22, 2009

I create what I need, like BOMNotFound or PartNotFound (if there's no way to check on the client).

Copyright (c) Marimer LLC