1 public class ToyTool2 {3 private String message = "Hello from ToyTool!";4 5 public String getMessage()6 {7 return message;8 }9 10 public void setMessage(String m)11 { 12 message = m;13 }14 15 /** To test exception handling in templates. */16 public boolean whine() {17 throw new IllegalArgumentException ();18 }19 20 }21