Made exception static and added constructor with exception cause

This commit is contained in:
Niclas Finne 2012-05-23 15:03:03 +02:00
parent bea1b8d3a1
commit 47d3425aab

View file

@ -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;
}