Possible Duplicate:
Create custom exception or use built-in exceptions?
Hi,
In program design, is it normal to model exceptions for business constraints? E.g. if xyz must be >1 in order to get abc (a basket object must exist before being able to add objects), and the basket does not exist, is this a good enough reason to have a custom exception to model this real-world scenario?
What reasons contribute to using custom exceptions?