From 8234767203a7f673b12c8f51b83762c511274366 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Tue, 26 Jul 2016 19:43:13 +0300 Subject: Rename project to tunkki --- .../jantuomi/tunkki/exception/ExceptionManager.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/main/com/jantuomi/tunkki/exception/ExceptionManager.java (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 new file mode 100644 index 0000000..7c7a6b5 --- /dev/null +++ b/src/main/com/jantuomi/tunkki/exception/ExceptionManager.java @@ -0,0 +1,21 @@ +package com.jantuomi.tunkki.exception; + +/** + * Created by jan on 10.6.2016. + */ +public class ExceptionManager { + + private static final ExceptionManager instance = new ExceptionManager(); + + private ExceptionManager() { + } + + public static ExceptionManager getInstance() { + return instance; + } + + public static void raise(BorkError.ExceptionType ex, int line, String... args) throws BorkError { + BorkError e = new BorkError(ex, line, args); + throw e; + } +} -- cgit v1.3