Skip to content

Commit

Permalink
Made exception static and added constructor with exception cause
Browse files Browse the repository at this point in the history
  • Loading branch information
nfi committed May 23, 2012
1 parent bea1b8d commit 47d3425
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tools/cooja/java/se/sics/cooja/MoteType.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,17 @@ public boolean setConfigXML(
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;
}
Expand Down

0 comments on commit 47d3425

Please sign in to comment.