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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.policy.common.utils.properties.exception;
24 * Exception indicating that a property annotation's definition (e.g., null name).
26 public class PropertyAnnotationException extends PropertyException {
27 private static final long serialVersionUID = 1L;
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}
34 public PropertyAnnotationException(String propnm, String fieldName) {
35 super(propnm, fieldName);
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
44 public PropertyAnnotationException(String propnm, String fieldName, String message) {
45 super(propnm, fieldName, message);
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
54 public PropertyAnnotationException(String propnm, String fieldName, Throwable cause) {
55 super(propnm, fieldName, cause);
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
65 public PropertyAnnotationException(String propnm, String fieldName, String message, Throwable cause) {
66 super(propnm, fieldName, message, cause);