blob: 4cad2cd3b138f1979b3bf9ab9e29a794c7ae83dd [file] [log] [blame]
Vidyashree Ramaa2f73982016-04-12 23:33:33 +05301/*
2 * Copyright 2016 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.yangutils.utils.builtindatatype;
18
19/**
20 * Base class for exceptions in data type.
21 */
22public class DataTypeException extends RuntimeException {
23
24 private static final long serialVersionUID = 20160211L;
25
26 /**
27 * Create a new data type exception.
28 */
29 public DataTypeException() {
30 super();
31 }
32
33 /**
34 * Creates a new data type exception with given message.
35 *
36 * @param message the detail of exception in string
37 */
38 public DataTypeException(String message) {
39 super(message);
40 }
41
42 /**
43 * Creates a new data type exception from given message and cause.
44 *
45 * @param message the detail of exception in string
46 * @param cause underlying cause of the error
47 */
48 public DataTypeException(final String message, final Throwable cause) {
49 super(message, cause);
50 }
51
52 /**
53 * Creates a new data type exception from cause.
54 *
55 * @param cause underlying cause of the error
56 */
57 public DataTypeException(final Throwable cause) {
58 super(cause);
59 }
60
61}