Best Practices for Exception Handling
Subject:   declaring impossible exceptions
Date:   2003-11-21 16:58:56
From:   anonymous2
Response to: declaring impossible exceptions

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.