Custom
exceptions are useful when the JDK exception classes don’t capture the
essence of erroneous situation which has come up in the application. A
custom exception can be created by extending any subclass of Exception
class or by implementing Throwable interface.
E.g. A custom exception can be thrown when the custom JSP tag has value for the attribute which is not expected.
Posted in: