2 * Copyright 2015 Open Networking Laboratory
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package org.onosproject.pcepio.exceptions;
20 * Custom exception for Tunnel Attributes.
22 public class PcepTunnelAttributeException extends Exception {
24 private static final long serialVersionUID = 7860981378961458434L;
27 * Default constructor to create a new exception.
29 public PcepTunnelAttributeException() {
34 * Constructor to create exception from message and cause.
36 * @param message the detail of exception in string
37 * @param cause underlying cause of the error
39 public PcepTunnelAttributeException(final String message, final Throwable cause) {
40 super(message, cause);
44 * Constructor to create exception from message.
46 * @param message the detail of exception in string
48 public PcepTunnelAttributeException(final String message) {
53 * Constructor to create exception from cause.
55 * @param cause underlying cause of the error
57 public PcepTunnelAttributeException(final Throwable cause) {