From 6c6eabea8947a9ae83e6ba98112574c1a2f25a34 Mon Sep 17 00:00:00 2001 From: jantuomi Date: Fri, 29 Jul 2016 15:44:20 +0300 Subject: Add nada datatype, resolves #11 --- src/main/com/jantuomi/tunkki/exception/TunkkiError.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/com/jantuomi/tunkki/exception/TunkkiError.java') 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 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; -- cgit v1.3