aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/com/jantuomi/tunkki/exception
diff options
context:
space:
mode:
authorjantuomi <jans.tuomi@gmail.com>2016-07-29 15:44:20 +0300
committerjantuomi <jans.tuomi@gmail.com>2016-07-29 15:44:20 +0300
commit6c6eabea8947a9ae83e6ba98112574c1a2f25a34 (patch)
treebe3cfedf93a630a85b0cf5afd9b09ea0735c3b12 /src/main/com/jantuomi/tunkki/exception
parent316add83c73292b16e1c51feb66e30720208e20c (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.java4
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;