diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2016-06-28 21:09:43 +0300 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2016-07-26 19:47:12 +0300 |
| commit | 8f84c00978dc05007873a9fe1de6a18511dc3cf8 (patch) | |
| tree | 39fead540e22addee40b95b68db08cbea620745b /src/main/com/jantuomi/borker/exception/ExceptionManager.java | |
| parent | 48dcd488054024d98fe1e659a4029630130d1d35 (diff) | |
Restructure project for use with maven
Diffstat (limited to 'src/main/com/jantuomi/borker/exception/ExceptionManager.java')
| -rw-r--r-- | src/main/com/jantuomi/borker/exception/ExceptionManager.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main/com/jantuomi/borker/exception/ExceptionManager.java b/src/main/com/jantuomi/borker/exception/ExceptionManager.java new file mode 100644 index 0000000..b9b302b --- /dev/null +++ b/src/main/com/jantuomi/borker/exception/ExceptionManager.java @@ -0,0 +1,21 @@ +package com.jantuomi.borker.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(InterpreterException.ExceptionType ex, int line, String... args) throws InterpreterException { + InterpreterException e = new InterpreterException(ex, line, args); + throw e; + } +} |
