Search

Useful Links

Tuesday, June 18, 2013

How to create custom exceptions?

A. By extending the Exception class or one of its subclasses.
Example:
class MyException extends Exception {
  public MyException() { super(); }
  public MyException(String s) { super(s); }
  }

No comments:

Post a Comment