blob: 5f7fd4faf6e14d63c8a1d4514a6425236744ee77 [file] [log] [blame]
Mahesh Poojary Sf1bbd362016-02-25 18:19:59 +05301/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2016-present Open Networking Laboratory
Mahesh Poojary Sf1bbd362016-02-25 18:19:59 +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.pcepio.exceptions;
18
19/**
20 * Custom exception for message out-of-bound.
21 */
22public class PcepOutOfBoundMessageException extends Exception {
23
24 private static final long serialVersionUID = 3L;
25
26 /**
27 * Default constructor to create a new exception.
28 */
29 public PcepOutOfBoundMessageException() {
30 super();
31 }
32
33 /**
34 * Constructor to create exception from message and cause.
35 *
36 * @param message the detail of exception in string
37 * @param cause underlying cause of the error
38 */
39 public PcepOutOfBoundMessageException(final String message, final Throwable cause) {
40 super(message, cause);
41 }
42
43 /**
44 * Constructor to create exception from message.
45 *
46 * @param message the detail of exception in string
47 */
48 public PcepOutOfBoundMessageException(final String message) {
49 super(message);
50 }
51
52 /**
53 * Constructor to create exception from cause.
54 *
55 * @param cause underlying cause of the error
56 */
57 public PcepOutOfBoundMessageException(final Throwable cause) {
58 super(cause);
59 }
60}