diff options
| author | jantuomi <jans.tuomi@gmail.com> | 2016-07-29 15:44:20 +0300 |
|---|---|---|
| committer | jantuomi <jans.tuomi@gmail.com> | 2016-07-29 15:44:20 +0300 |
| commit | 6c6eabea8947a9ae83e6ba98112574c1a2f25a34 (patch) | |
| tree | be3cfedf93a630a85b0cf5afd9b09ea0735c3b12 /src/main/com/jantuomi/tunkki/exception | |
| parent | 316add83c73292b16e1c51feb66e30720208e20c (diff) | |
Add nada datatype, resolves #11
Diffstat (limited to 'src/main/com/jantuomi/tunkki/exception')
| -rw-r--r-- | src/main/com/jantuomi/tunkki/exception/TunkkiError.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/com/jantuomi/tunkki/exception/TunkkiError.java b/src/main/com/jantuomi/tunkki/exception/TunkkiError.java index 24431ba..9e0163c 100644 --- a/src/main/com/jantuomi/tunkki/exception/TunkkiError.java +++ b/src/main/com/jantuomi/tunkki/exception/TunkkiError.java @@ -19,7 +19,8 @@ public class TunkkiError extends Exception { ExpectedDifferentTokenError, UndeclaredSymbolError, IncludeError, - GeneralError + GeneralError, + NadaError } private static Map<ExceptionType, String> errorTexts = new HashMap<>(); @@ -33,6 +34,7 @@ public class TunkkiError extends Exception { errorTexts.put(ExceptionType.UndeclaredSymbolError, "No symbol %s defined, parameters: [%s]."); errorTexts.put(ExceptionType.IncludeError, "File %s could not be included."); errorTexts.put(ExceptionType.GeneralError, "%s"); + errorTexts.put(ExceptionType.NadaError, "Can't do operation with a nada value."); } private ExceptionType exceptionType; |
