Phaneendra Manda | 1c0061d | 2015-08-06 12:29:38 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 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 | |
| 17 | package org.onosproject.pcepio.exceptions; |
| 18 | |
| 19 | /** |
| 20 | * Custom exception for Tunnel Attributes. |
| 21 | */ |
| 22 | public class PcepTunnelAttributeException extends Exception { |
| 23 | |
| 24 | private static final long serialVersionUID = 7860981378961458434L; |
| 25 | |
| 26 | /** |
| 27 | * Default constructor to create a new exception. |
| 28 | */ |
| 29 | public PcepTunnelAttributeException() { |
| 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 PcepTunnelAttributeException(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 PcepTunnelAttributeException(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 PcepTunnelAttributeException(final Throwable cause) { |
| 58 | super(cause); |
| 59 | } |
| 60 | } |