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