aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/com/jantuomi/tunkki/exception
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2016-07-26 21:46:30 +0300
committerJan Tuomi <jans.tuomi@gmail.com>2016-07-26 21:46:30 +0300
commit22ec5b89f053830f5ed3798abc28bd23ff7ca6a2 (patch)
treec143098b20f757181f693fd6955938b302778f0a /src/main/com/jantuomi/tunkki/exception
parent10d98039cbd7b8c2dae808761705ce64de2c69f6 (diff)
Rename BorkError to TunkkiError
Diffstat (limited to 'src/main/com/jantuomi/tunkki/exception')
-rw-r--r--src/main/com/jantuomi/tunkki/exception/ExceptionManager.java4
-rw-r--r--src/main/com/jantuomi/tunkki/exception/TunkkiError.java (renamed from src/main/com/jantuomi/tunkki/exception/BorkError.java)4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/main/com/jantuomi/tunkki/exception/ExceptionManager.java b/src/main/com/jantuomi/tunkki/exception/ExceptionManager.java
index 7c7a6b5..9cfdd2e 100644
--- a/src/main/com/jantuomi/tunkki/exception/ExceptionManager.java
+++ b/src/main/com/jantuomi/tunkki/exception/ExceptionManager.java
@@ -14,8 +14,8 @@ public class ExceptionManager {
return instance;
}
- public static void raise(BorkError.ExceptionType ex, int line, String... args) throws BorkError {
- BorkError e = new BorkError(ex, line, args);
+ public static void raise(TunkkiError.ExceptionType ex, int line, String... args) throws TunkkiError {
+ TunkkiError e = new TunkkiError(ex, line, args);
throw e;
}
}
diff --git a/src/main/com/jantuomi/tunkki/exception/BorkError.java b/src/main/com/jantuomi/tunkki/exception/TunkkiError.java
index 6c7c2a1..b75398a 100644
--- a/src/main/com/jantuomi/tunkki/exception/BorkError.java
+++ b/src/main/com/jantuomi/tunkki/exception/TunkkiError.java
@@ -7,7 +7,7 @@ import java.util.Map;
/**
* Created by jan on 12.6.2016.
*/
-public class BorkError extends Exception {
+public class TunkkiError extends Exception {
public enum ExceptionType {
IllegalTokenError,
@@ -34,7 +34,7 @@ public class BorkError extends Exception {
private ExceptionType exceptionType;
private String completeMessage;
- public BorkError(ExceptionType exceptionType, int line, String... args) {
+ public TunkkiError(ExceptionType exceptionType, int line, String... args) {
super(exceptionType.toString(), null, false, false);
this.exceptionType = exceptionType;
this.completeMessage = formatMessage(exceptionType.toString() + ": " + what(exceptionType), line, args);