To create
you own exception extend the Exception class or any of its subclasses.
If an application / developer can reasonably be
expected to recover from an exception, make it a checked exception. If an
application / developer cannot do anything to recover from the exception, make
it an unchecked exception.
Example:
Example:
No comments:
Post a Comment