public class GenException extends Exception { String str=""; GenException(String s) { str=s; } public String toString() { return str; } }