mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Made exception static and added constructor with exception cause
This commit is contained in:
parent
bea1b8d3a1
commit
47d3425aab
@ -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 New Issue
Block a user