//Objects of this user-defined exception are thrown by //Interpreter class. class InterpreterException extends Exception{ private String message; public InterpreterException(){} public InterpreterException(String s){ message = s; } public String getMessage(){ return message; } }