Skip to content

Commit 47d3425

Browse files
committed
Made exception static and added constructor with exception cause
1 parent bea1b8d commit 47d3425

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tools/cooja/java/se/sics/cooja/MoteType.java

+8-2
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,17 @@ public boolean setConfigXML(
214214
Simulation simulation, Collection<Element> configXML, boolean visAvailable)
215215
throws MoteTypeCreationException;
216216

217-
public class MoteTypeCreationException extends Exception {
218-
private MessageList compilationOutput = null;
217+
public static class MoteTypeCreationException extends Exception {
218+
private static final long serialVersionUID = 7625450894307392953L;
219+
220+
private MessageList compilationOutput;
221+
219222
public MoteTypeCreationException(String message) {
220223
super(message);
221224
}
225+
public MoteTypeCreationException(String message, Throwable cause) {
226+
super(message, cause);
227+
}
222228
public boolean hasCompilationOutput() {
223229
return compilationOutput != null;
224230
}

0 commit comments

Comments
 (0)