aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/com/jantuomi/tunkki/exception/TunkkiError.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/com/jantuomi/tunkki/exception/TunkkiError.java')
-rw-r--r--src/main/com/jantuomi/tunkki/exception/TunkkiError.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/com/jantuomi/tunkki/exception/TunkkiError.java b/src/main/com/jantuomi/tunkki/exception/TunkkiError.java
index dd48077..2f133e6 100644
--- a/src/main/com/jantuomi/tunkki/exception/TunkkiError.java
+++ b/src/main/com/jantuomi/tunkki/exception/TunkkiError.java
@@ -20,7 +20,7 @@ public class TunkkiError extends Exception {
UndeclaredSymbolError,
IncludeError,
GeneralError,
- NadaError
+ CastError, NadaError
}
private static Map<ExceptionType, String> errorTexts = new HashMap<>();
@@ -35,6 +35,7 @@ public class TunkkiError extends Exception {
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.");
+ errorTexts.put(ExceptionType.CastError, "Illegal cast to type %s from value %s.");
}
private ExceptionType exceptionType;