Merge commit '42b2e5ca519766e37ce6941ba4faecc9691cc403' into upstream
[debian/openrocket] / android-libraries / TreeViewList / src / pl / polidea / treeview / NodeNotInTreeException.java
diff --git a/android-libraries/TreeViewList/src/pl/polidea/treeview/NodeNotInTreeException.java b/android-libraries/TreeViewList/src/pl/polidea/treeview/NodeNotInTreeException.java
new file mode 100644 (file)
index 0000000..f20450e
--- /dev/null
@@ -0,0 +1,15 @@
+package pl.polidea.treeview;
+
+/**
+ * This exception is thrown when the tree does not contain node requested.
+ * 
+ */
+public class NodeNotInTreeException extends RuntimeException {
+
+    private static final long serialVersionUID = 1L;
+
+    public NodeNotInTreeException(final String id) {
+        super("The tree does not contain the node specified: " + id);
+    }
+
+}