blob: bc6cbaa8e9c6ff9149b2778db2508fc4b80e126d [file] [log] [blame]
Shankara-Huaweid5823ab2016-11-22 10:14:52 +05301/*
2 * Copyright 2016-present Open Networking Laboratory
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.yms.app.ych;
18
19/**
20 * Represents base class for exceptions in YCH operations.
21 */
22public class YchException extends RuntimeException {
23 private static final long serialVersionUID = 20160211L;
24
25 /**
26 * Creates a new YCH exception.
27 */
28 public YchException() {
29 }
30
31 /**
32 * Creates a new YCH exception with given message.
33 *
34 * @param message the detail of exception in string
35 */
36 public YchException(String message) {
37 super(message);
38 }
39
40 /**
41 * Creates a new YCH exception from given message and cause.
42 *
43 * @param message the detail of exception in string
44 * @param cause underlying cause of the error
45 */
46 public YchException(String message, Throwable cause) {
47 super(message, cause);
48 }
49
50 /**
51 * Creates a new YCH exception from cause.
52 *
53 * @param cause underlying cause of the error
54 */
55 public YchException(Throwable cause) {
56 super(cause);
57 }
58}