blob: 9c4854756e7528315a4516e888d25416a883dcea [file] [log] [blame]
Niraj Dubeya8287192021-03-23 19:54:17 +05301/*
2 * Copyright 2021-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.bgpmonitoring;
18
19
20/**
21 * Custom Exception for BMP IO.
22 */
23public class BmpParseException extends Exception {
24
25 private static final long serialVersionUID = 1L;
26
27 /**
28 * Default constructor to create a new exception.
29 */
30 public BmpParseException() {
31 super();
32 }
33
34 /**
35 * Constructor to create exception from message and cause.
36 *
37 * @param message the detail of exception in string
38 * @param cause underlying cause of the error
39 */
40 public BmpParseException(final String message, final Throwable cause) {
41 super(message, cause);
42 }
43
44 /**
45 * Constructor to create exception from message.
46 *
47 * @param message the detail of exception in string
48 */
49 public BmpParseException(final String message) {
50 super(message);
51 }
52
53 /**
54 * Constructor to create exception from cause.
55 *
56 * @param cause underlying cause of the error
57 */
58 public BmpParseException(final Throwable cause) {
59 super(cause);
60 }
61
62}