2803ddfe5190657da87b2c25041504f66e528f27
[policy/common.git] /
1 /*
2  * ============LICENSE_START=======================================================
3  * ONAP Policy Engine - Common Modules
4  * ================================================================================
5  * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.policy.common.utils.properties.exception;
22
23 /**
24  * Exception indicating that a property annotation's definition (e.g., null name).
25  */
26 public class PropertyAnnotationException extends PropertyException {
27     private static final long serialVersionUID = 1L;
28
29     /**
30      * 
31      * @param propnm name of the property causing the exception, or {@code null}
32      * @param fieldName name of the field causing the exception, or {@code null}
33      */
34     public PropertyAnnotationException(String propnm, String fieldName) {
35         super(propnm, fieldName);
36     }
37
38     /**
39      * 
40      * @param propnm name of the property causing the exception, or {@code null}
41      * @param fieldName name of the field causing the exception, or {@code null}
42      * @param message error message
43      */
44     public PropertyAnnotationException(String propnm, String fieldName, String message) {
45         super(propnm, fieldName, message);
46     }
47
48     /**
49      * 
50      * @param propnm name of the property causing the exception, or {@code null}
51      * @param fieldName name of the field causing the exception, or {@code null}
52      * @param cause cause of the exception
53      */
54     public PropertyAnnotationException(String propnm, String fieldName, Throwable cause) {
55         super(propnm, fieldName, cause);
56     }
57
58     /**
59      * 
60      * @param propnm name of the property causing the exception, or {@code null}
61      * @param fieldName name of the field causing the exception, or {@code null}
62      * @param message error message
63      * @param cause cause of the exception
64      */
65     public PropertyAnnotationException(String propnm, String fieldName, String message, Throwable cause) {
66         super(propnm, fieldName, message, cause);
67     }
68
69 }