diff options
| author | Jan Tuomi <jan-sebastian.tuomi@aalto.fi> | 2016-08-02 23:07:23 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan-sebastian.tuomi@aalto.fi> | 2016-08-02 23:07:23 +0300 |
| commit | 2132d8d8ead5619974976ca430d91ee760e0551b (patch) | |
| tree | e81eefc3afaea7395409687faabc8d8d0186f922 /src/main/com/jantuomi/tunkki/exception/ExceptionManager.java | |
| parent | 5ac4b67b7eba39bbb098b9b184dcacffe99baa2a (diff) | |
Refactor TunkkiError to subclasses
Make TunkkiError abstract and create a subclass for all error types
Change all TunkkiError throws to throw subclasses instead
Diffstat (limited to 'src/main/com/jantuomi/tunkki/exception/ExceptionManager.java')
| -rw-r--r-- | src/main/com/jantuomi/tunkki/exception/ExceptionManager.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/com/jantuomi/tunkki/exception/ExceptionManager.java b/src/main/com/jantuomi/tunkki/exception/ExceptionManager.java index 9cfdd2e..b26c3b0 100644 --- a/src/main/com/jantuomi/tunkki/exception/ExceptionManager.java +++ b/src/main/com/jantuomi/tunkki/exception/ExceptionManager.java @@ -1,5 +1,7 @@ package com.jantuomi.tunkki.exception; +import com.jantuomi.tunkki.exception.types.TunkkiError; + /** * Created by jan on 10.6.2016. */ @@ -13,9 +15,4 @@ public class ExceptionManager { public static ExceptionManager getInstance() { return instance; } - - public static void raise(TunkkiError.ExceptionType ex, int line, String... args) throws TunkkiError { - TunkkiError e = new TunkkiError(ex, line, args); - throw e; - } } |
