diff options
Diffstat (limited to 'main/exception/InterpreterException.java')
| -rw-r--r-- | main/exception/InterpreterException.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/exception/InterpreterException.java b/main/exception/InterpreterException.java index 1565df9..8421edc 100644 --- a/main/exception/InterpreterException.java +++ b/main/exception/InterpreterException.java @@ -14,7 +14,8 @@ public class InterpreterException extends Exception { UnknownOperatorError, SyntaxError, TypeError, - ArgumentError + ArgumentError, + UndeclaredSymbolError } public static Map<ExceptionType, String> errorTexts = new HashMap<>(); @@ -25,6 +26,7 @@ public class InterpreterException extends Exception { errorTexts.put(ExceptionType.SyntaxError, "Unexpected %s."); errorTexts.put(ExceptionType.TypeError, "Incompatible types %s and %s."); errorTexts.put(ExceptionType.ArgumentError, "Function %s requires %s arguments."); + errorTexts.put(ExceptionType.UndeclaredSymbolError, "No symbol %s defined."); } private ExceptionType exceptionType; |
