From 2132d8d8ead5619974976ca430d91ee760e0551b Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Tue, 2 Aug 2016 23:07:23 +0300 Subject: Refactor TunkkiError to subclasses Make TunkkiError abstract and create a subclass for all error types Change all TunkkiError throws to throw subclasses instead --- src/main/com/jantuomi/tunkki/exception/ExceptionManager.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/main/com/jantuomi/tunkki/exception/ExceptionManager.java') 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; - } } -- cgit v1.3