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) Simulation simulation, Collection<Element> configXML, boolean visAvailable)
throws MoteTypeCreationException; throws MoteTypeCreationException;
public class MoteTypeCreationException extends Exception { public static class MoteTypeCreationException extends Exception {
private MessageList compilationOutput = null; private static final long serialVersionUID = 7625450894307392953L;
private MessageList compilationOutput;
public MoteTypeCreationException(String message) { public MoteTypeCreationException(String message) {
super(message); super(message);
} }
public MoteTypeCreationException(String message, Throwable cause) {
super(message, cause);
}
public boolean hasCompilationOutput() { public boolean hasCompilationOutput() {
return compilationOutput != null; return compilationOutput != null;
} }