blob: 9057843f37a7eb17b216420d8a4acf3acb3c6de0 [file] [log] [blame]
Vidyashree Rama76faccc2016-10-17 22:06:52 +05301/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Vidyashree Rama76faccc2016-10-17 22:06:52 +05303 *
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.yms.app.yab.exceptions;
18
19/**
20 * Represents base class for exceptions in YDT operations.
21 */
22public class YabException extends RuntimeException {
23
24 private static final long serialVersionUID = 20160211L;
25
26 /**
27 * Creates a new YDT exception.
28 */
29 public YabException() {
30 }
31
32 /**
33 * Creates a new YDT exception with given message.
34 *
35 * @param message the detail of exception in string
36 */
37 public YabException(String message) {
38 super(message);
39 }
40
41 /**
42 * Creates a new YDT exception from given message and cause.
43 *
44 * @param message the detail of exception in string
45 * @param cause underlying cause of the error
46 */
47 public YabException(final String message, final Throwable cause) {
48 super(message, cause);
49 }
50
51 /**
52 * Creates a new YDT exception from cause.
53 *
54 * @param cause underlying cause of the error
55 */
56 public YabException(final Throwable cause) {
57 super(cause);
58 }
59}