diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2016-06-21 20:07:32 +0300 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2016-07-26 19:47:03 +0300 |
| commit | 45a2b88d584fc8bdee1fbaf0def1d9b55ba26eff (patch) | |
| tree | 1cf80f1b4384e27054c3cb2f90ac6f1953e89f35 /main/exception/InterpreterException.java | |
| parent | d745f000d6d60b9cdf0ba40dbf80660c1aa6bc61 (diff) | |
Added scopes, variables and functions
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; |
