Update appc-common to Karaf 4
[appc.git] / appc-core / appc-common-bundle / java / org / onap / appc / pool / PoolException.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Copyright (C) 2017 Amdocs
8  * =============================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  * 
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  * 
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * 
21  * ============LICENSE_END=========================================================
22  */
23
24
25
26 package org.onap.appc.pool;
27
28 /**
29  * A pool exception is a specialization of checked exceptions that define various pool abnormal states or requests.
30  *
31  */
32 public class PoolException extends Exception {
33     /**
34      *
35      */
36     private static final long serialVersionUID = 1L;
37
38     /**
39      * PoolException constructor
40      */
41     public PoolException() {
42     }
43
44     /**
45      * PoolException constructor
46      *
47      * @param message
48      *            The error message
49      */
50     public PoolException(String message) {
51         super(message);
52     }
53
54     /**
55      * PoolException constructor
56      *
57      * @param cause
58      *            The cause of the exception
59      */
60     public PoolException(Throwable cause) {
61         super(cause);
62     }
63
64     /**
65      * PoolException constructor
66      *
67      * @param message
68      *            The error message
69      * @param cause
70      *            The cause of the exception
71      */
72     public PoolException(String message, Throwable cause) {
73         super(message, cause);
74     }
75
76     /**
77      * PoolException constructor
78      *
79      * @param message
80      *            The error message
81      * @param cause
82      *            The cause of the exception
83      * @param enableSuppression
84      *            whether or not suppression is enabled or disabled
85      * @param writableStackTrace
86      *            whether or not the stack trace should be writable
87      */
88     public PoolException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
89         super(message, cause, enableSuppression, writableStackTrace);
90     }
91 }