public class OutOfRangeException extends Exception { public void print () { System.out.println("Out of range"); } }