]> git.uio.no Git - ifi-stolz-refaktor.git/blobdiff - case-study/refaktor-after/src/no/uio/ifi/refaktor/analyze/exceptions/IllegalStatementFoundException.java
Case Study: adding data and statistics
[ifi-stolz-refaktor.git] / case-study / refaktor-after / src / no / uio / ifi / refaktor / analyze / exceptions / IllegalStatementFoundException.java
diff --git a/case-study/refaktor-after/src/no/uio/ifi/refaktor/analyze/exceptions/IllegalStatementFoundException.java b/case-study/refaktor-after/src/no/uio/ifi/refaktor/analyze/exceptions/IllegalStatementFoundException.java
new file mode 100644 (file)
index 0000000..370b15d
--- /dev/null
@@ -0,0 +1,18 @@
+package no.uio.ifi.refaktor.analyze.exceptions;
+
+import org.eclipse.jdt.core.dom.ASTNode;
+
+
+public class IllegalStatementFoundException extends CheckerException {
+
+       private static final long serialVersionUID = -4093833907546449318L;
+
+       public IllegalStatementFoundException(ASTNode problemNode) {
+               this(problemNode.getClass());
+       }
+
+       public IllegalStatementFoundException(Class<?> statementClass) {
+               super(statementClass.getCanonicalName());
+       }
+
+}