2 * ============LICENSE_START=======================================================
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 * ============LICENSE_END=========================================================
26 package org.onap.appc.pool;
29 * A pool exception is a specialization of checked exceptions that define various pool abnormal states or requests.
32 public class PoolException extends Exception {
36 private static final long serialVersionUID = 1L;
39 * PoolException constructor
41 public PoolException() {
45 * PoolException constructor
50 public PoolException(String message) {
55 * PoolException constructor
58 * The cause of the exception
60 public PoolException(Throwable cause) {
65 * PoolException constructor
70 * The cause of the exception
72 public PoolException(String message, Throwable cause) {
73 super(message, cause);
77 * PoolException constructor
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
88 public PoolException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
89 super(message, cause, enableSuppression, writableStackTrace);