Java examples for Object Oriented Design:Exception
Exception classes typically have two constructors:
Exception classes are like other classes.
public class MyException extends Exception { public MyException () {} public MyException (String message) { super (message); } }