2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights
7 * ================================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END=========================================================
24 package org.openecomp.appc.pool;
27 * A pool exception is a specialization of checked exceptions that define various pool abnormal states or requests.
30 public class PoolException extends Exception {
34 private static final long serialVersionUID = 1L;
37 * PoolException constructor
39 public PoolException() {
43 * PoolException constructor
48 public PoolException(String message) {
53 * PoolException constructor
56 * The cause of the exception
58 public PoolException(Throwable cause) {
63 * PoolException constructor
68 * The cause of the exception
70 public PoolException(String message, Throwable cause) {
71 super(message, cause);
75 * PoolException constructor
80 * The cause of the exception
81 * @param enableSuppression
82 * whether or not suppression is enabled or disabled
83 * @param writableStackTrace
84 * whether or not the stack trace should be writable
86 public PoolException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
87 super(message, cause, enableSuppression, writableStackTrace);