Yuta HIGUCHI | eb3733a | 2014-08-26 21:38:16 -0700 | [diff] [blame] | 1 | package net.onrc.onos.core.topology; |
| 2 | |
| 3 | /** |
| 4 | * Exception thrown, when topology could not mutated due to unmet preconditions. |
| 5 | */ |
| 6 | public class TopologyMutationFailed extends RuntimeException { |
| 7 | |
| 8 | /** |
| 9 | * Constructs a new exception with the specified detail message. |
| 10 | * {@link RuntimeException#RuntimeException(String)} |
| 11 | * |
| 12 | * @param message failure description |
| 13 | */ |
| 14 | public TopologyMutationFailed(String message) { |
| 15 | super(message); |
| 16 | } |
| 17 | |
| 18 | /** |
| 19 | * Constructs a new exception with the specified cause. |
| 20 | * {@link RuntimeException#RuntimeException(Throwable)} |
| 21 | * |
| 22 | * @param cause exception causing this. |
| 23 | */ |
| 24 | public TopologyMutationFailed(Throwable cause) { |
| 25 | super(cause); |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * Constructs a new exception with the specified detail message and cause. |
| 30 | * {@link RuntimeException#RuntimeException(String, Throwable)} |
| 31 | * |
| 32 | * @param message failure description |
| 33 | * @param cause exception causing this. |
| 34 | */ |
| 35 | public TopologyMutationFailed(String message, Throwable cause) { |
| 36 | super(message, cause); |
| 37 | } |
| 38 | } |