| Article: |
Best Practices for Exception Handling | |
| Subject: | declaring impossible exceptions | |
| Date: | 2003-11-21 09:19:42 | |
| From: | anonymous2 | |
|
I think it's important that Java allows this:
|
||
Showing messages 1 through 1 of 1.
-
declaring impossible exceptions
2003-11-21 16:58:56 anonymous2 [View]
And what is proberly more important, is that by extending Exception (or some other exception) you create a new type that can be differentiated from other Exceptions and thereby giving the catching party an oppotunity to act differently on different types, without having to resort to string comparisons on the error message.


