posted 15 years ago
Most exception subclasses I create have no methods, only copies of the constructors of its parent class. All these constructors do is call super(arguments). There are usually two or four constructors to copy:
- no arguments for a no-message exception
- String for only a message
- Throwable to wrap a throwable (exception or error) (sometimes absent)
- String, Throwable to wrap a throwable but give a custom error message (sometimes absent)