Applying license changes to all files
[appc.git] / appc-common / src / main / java / org / openecomp / appc / exceptions / UnknownProviderException.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
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
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  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  * ============LICENSE_END=========================================================
23  */
24
25
26
27 package org.openecomp.appc.exceptions;
28
29 /**
30  * This exception indicates that the named provider could not be found or was unidentifiable.
31  */
32 public class UnknownProviderException extends APPCException {
33
34     /**
35     *
36     */
37    private static final long serialVersionUID = 1L;
38
39    /**
40     * Constructs a new exception with null as its detail message. The cause is not initialized, and may subsequently be
41     * initialized by a call to initCause.
42     */
43    public UnknownProviderException() {
44    }
45
46    /**
47     * Constructs a new exception with the specified detail message. The cause is not initialized, and may subsequently
48     * be initialized by a call to initCause.
49     * 
50     * @param message
51     *            the detail message. The detail message is saved for later retrieval by the getMessage() method.
52     */
53    public UnknownProviderException(String message) {
54        super(message);
55    }
56
57    /**
58     * Constructs a new exception with the specified cause and a detail message of (cause==null ? null :
59     * cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful
60     * for exceptions that are little more than wrappers for other throwables (for example,
61     * java.security.PrivilegedActionException).
62     * 
63     * @param cause
64     *            the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted,
65     *            and indicates that the cause is nonexistent or unknown.)
66     */
67    public UnknownProviderException(Throwable cause) {
68        super(cause);
69    }
70
71    /**
72     * 
73     Constructs a new exception with the specified detail message and cause.
74     * <p>
75     * Note that the detail message associated with cause is not automatically incorporated in this exception's detail
76     * message.
77     * </p>
78     * 
79     * @param message
80     *            the detail message (which is saved for later retrieval by the getMessage() method).
81     * @param cause
82     *            the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted,
83     *            and indicates that the cause is nonexistent or unknown.)
84     */
85    public UnknownProviderException(String message, Throwable cause) {
86        super(message, cause);
87    }
88
89    /**
90     * 
91     Constructs a new exception with the specified detail message, cause, suppression enabled or disabled, and
92     * writable stack trace enabled or disabled.
93     * 
94     * @param message
95     *            the detail message.
96     * @param cause
97     *            the cause. (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
98     * @param enableSuppression
99     *            whether or not suppression is enabled or disabled
100     * @param writableStackTrace
101     *            whether or not the stack trace should be writable
102     */
103    public UnknownProviderException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
104        super(message, cause, enableSuppression, writableStackTrace);
105    }
106
107 }