Sho SHIMIZU | 15ed4fd | 2014-08-05 14:40:42 -0700 | [diff] [blame] | 1 | package net.onrc.onos.api.newintent; |
| 2 | |
| 3 | /** |
| 4 | * Represents an intent related error. |
| 5 | */ |
| 6 | public class IntentException extends RuntimeException { |
| 7 | |
| 8 | private static final long serialVersionUID = 1907263634145241319L; |
| 9 | |
| 10 | /** |
| 11 | * Constructs an exception with no message and no underlying cause. |
| 12 | */ |
| 13 | public IntentException() { |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * Constructs an exception with the specified message. |
| 18 | * |
| 19 | * @param message the message describing the specific nature of the error |
| 20 | */ |
| 21 | public IntentException(String message) { |
| 22 | super(message); |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Constructs an exception with the specified message and the underlying cause. |
| 27 | * |
| 28 | * @param message the message describing the specific nature of the error |
| 29 | * @param cause the underlying cause of this error |
| 30 | */ |
| 31 | public IntentException(String message, Throwable cause) { |
| 32 | super(message, cause); |
| 33 | } |
| 34 | |
| 35 | } |