ImmutableTopology prototype.
Change-Id: I0d9149e2e5145f61a152d80f8afe8dc4bee7b9aa
diff --git a/src/main/java/net/onrc/onos/core/topology/TopologyMutationFailed.java b/src/main/java/net/onrc/onos/core/topology/TopologyMutationFailed.java
new file mode 100644
index 0000000..b902571
--- /dev/null
+++ b/src/main/java/net/onrc/onos/core/topology/TopologyMutationFailed.java
@@ -0,0 +1,38 @@
+package net.onrc.onos.core.topology;
+
+/**
+ * Exception thrown, when topology could not mutated due to unmet preconditions.
+ */
+public class TopologyMutationFailed extends RuntimeException {
+
+ /**
+ * Constructs a new exception with the specified detail message.
+ * {@link RuntimeException#RuntimeException(String)}
+ *
+ * @param message failure description
+ */
+ public TopologyMutationFailed(String message) {
+ super(message);
+ }
+
+ /**
+ * Constructs a new exception with the specified cause.
+ * {@link RuntimeException#RuntimeException(Throwable)}
+ *
+ * @param cause exception causing this.
+ */
+ public TopologyMutationFailed(Throwable cause) {
+ super(cause);
+ }
+
+ /**
+ * Constructs a new exception with the specified detail message and cause.
+ * {@link RuntimeException#RuntimeException(String, Throwable)}
+ *
+ * @param message failure description
+ * @param cause exception causing this.
+ */
+ public TopologyMutationFailed(String message, Throwable cause) {
+ super(message, cause);
+ }
+}