Anyone have a good reason why you would create your own classes of exceptions? My gut feeling is that this is a good thing to do but books don't offer much advice?
Printable View
Anyone have a good reason why you would create your own classes of exceptions? My gut feeling is that this is a good thing to do but books don't offer much advice?
ive been thinkin of that but it looks like it gives a LOT of work =\
Well, when you create your own custom classes you may want to throw your own app specific exceptions. For example, to enforce business rules.