blob: 49cb9085e43d3791e8fe649e7ffd9f009861b86d [file] [log] [blame]
Yoonseon Han096cea02017-05-15 15:10:41 -07001/*
2 * Copyright 2017-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.incubator.net.virtual.intent;
18
19public class VirtualIntentException extends RuntimeException {
20
21 //FIXME: how to obatin UID?
22 private static final long serialVersionUID = 1907263634145241319L;
23
24 /**
25 * Constructs an exception with no message and no underlying cause.
26 */
27 public VirtualIntentException() {
28 }
29
30 /**
31 * Constructs an exception with the specified message.
32 *
33 * @param message the message describing the specific nature of the error
34 */
35 public VirtualIntentException(String message) {
36 super(message);
37 }
38
39 /**
40 * Constructs an exception with the specified message and the underlying cause.
41 *
42 * @param message the message describing the specific nature of the error
43 * @param cause the underlying cause of this error
44 */
45 public VirtualIntentException(String message, Throwable cause) {
46 super(message, cause);
47 }
48}