Made exception static and added constructor with exception cause
This commit is contained in:
parent
bea1b8d3a1
commit
47d3425aab
1 changed files with 8 additions and 2 deletions
|
@ -214,11 +214,17 @@ public interface MoteType {
|
|||
Simulation simulation, Collection<Element> configXML, boolean visAvailable)
|
||||
throws MoteTypeCreationException;
|
||||
|
||||
public class MoteTypeCreationException extends Exception {
|
||||
private MessageList compilationOutput = null;
|
||||
public static class MoteTypeCreationException extends Exception {
|
||||
private static final long serialVersionUID = 7625450894307392953L;
|
||||
|
||||
private MessageList compilationOutput;
|
||||
|
||||
public MoteTypeCreationException(String message) {
|
||||
super(message);
|
||||
}
|
||||
public MoteTypeCreationException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
public boolean hasCompilationOutput() {
|
||||
return compilationOutput != null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue