blob: fff55bed4bf3e26c9b2bff15b46ae9a153900d22 [file] [log] [blame]
Brian O'Connorb876bf12014-10-02 14:59:37 -07001package org.onlab.onos.net.intent;
2
3/**
4 * Represents an intent related error.
5 */
6public 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
toma1d16b62014-10-02 23:45:11 -070029 * @param cause the underlying cause of this error
Brian O'Connorb876bf12014-10-02 14:59:37 -070030 */
31 public IntentException(String message, Throwable cause) {
32 super(message, cause);
33 }
34
35}