From 47d3425aab1083b097a6387f704e6fbea594e79a Mon Sep 17 00:00:00 2001 From: Niclas Finne Date: Wed, 23 May 2012 15:03:03 +0200 Subject: [PATCH] Made exception static and added constructor with exception cause --- tools/cooja/java/se/sics/cooja/MoteType.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/MoteType.java b/tools/cooja/java/se/sics/cooja/MoteType.java index 48c374f58..5d65b88dd 100644 --- a/tools/cooja/java/se/sics/cooja/MoteType.java +++ b/tools/cooja/java/se/sics/cooja/MoteType.java @@ -214,11 +214,17 @@ public interface MoteType { Simulation simulation, Collection 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; }