diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2016-07-26 19:43:13 +0300 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2016-07-26 19:47:14 +0300 |
| commit | 8234767203a7f673b12c8f51b83762c511274366 (patch) | |
| tree | 3dfa221a1bc0c94860363a74bdaf4c3dbb23226d /src/main/com/jantuomi/tunkki/exception/ExceptionManager.java | |
| parent | 9c189c2d1ef35184ec9a9d08bdeeb52936902867 (diff) | |
Rename project to tunkki
Diffstat (limited to 'src/main/com/jantuomi/tunkki/exception/ExceptionManager.java')
| -rw-r--r-- | src/main/com/jantuomi/tunkki/exception/ExceptionManager.java | 21 |
1 files changed, 21 insertions, 0 deletions
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; + } +} |
