3 ms·
> if a failure is expected behavior, then you shouldn't be using exceptions Just from the abstract view - isn't 'exception' defined as unexpected event? Or am
by blueflow 12y ago
> if a failure is expected behavior, then you shouldn't be using exceptions
Just from the abstract view - isn't 'exception' defined as unexpected event? Or am i missing something?
- Retra 12y agoExceptions are not for unexpected behavior, but for state that is inconsistent with your model. Unexpected behavior is generally called an "error" or a bug. You can't code around the unexpected.