2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 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 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 * ============LICENSE_END=========================================================
27 package org.openecomp.appc.exceptions;
30 * This is a base class for all APPC defined exceptions.
33 public class APPCException extends Exception {
38 private static final long serialVersionUID = 1L;
41 * Constructs a new exception with null as its detail message. The cause is not initialized, and may subsequently be
42 * initialized by a call to initCause.
44 public APPCException() {
48 * Constructs a new exception with the specified detail message. The cause is not initialized, and may subsequently
49 * be initialized by a call to initCause.
52 * the detail message. The detail message is saved for later retrieval by the getMessage() method.
54 public APPCException(String message) {
59 * Constructs a new exception with the specified cause and a detail message of (cause==null ? null :
60 * cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful
61 * for exceptions that are little more than wrappers for other throwables (for example,
62 * java.security.PrivilegedActionException).
65 * the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted,
66 * and indicates that the cause is nonexistent or unknown.)
68 public APPCException(Throwable cause) {
74 Constructs a new exception with the specified detail message and cause.
76 * Note that the detail message associated with cause is not automatically incorporated in this exception's detail
81 * the detail message (which is saved for later retrieval by the getMessage() method).
83 * the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted,
84 * and indicates that the cause is nonexistent or unknown.)
86 public APPCException(String message, Throwable cause) {
87 super(message, cause);
92 Constructs a new exception with the specified detail message, cause, suppression enabled or disabled, and
93 * writable stack trace enabled or disabled.
98 * the cause. (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
99 * @param enableSuppression
100 * whether or not suppression is enabled or disabled
101 * @param writableStackTrace
102 * whether or not the stack trace should be writable
104 public APPCException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
105 super(message, cause, enableSuppression, writableStackTrace);