blob: dbb59d383975577a11674c3f796c54263af52ef0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package com.jantuomi.interpreter.main.exception;
import java.util.List;
/**
* 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, List<String> args) throws InterpreterException {
InterpreterException e = new InterpreterException(ex, line, args);
throw e;
}
}
|