2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017 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=========================================================
20 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 package org.onap.aai.exceptions;
24 import java.util.HashMap;
26 public class AAIExceptionWithInfo extends AAIException {
28 HashMap<String, Object> infoHash;
32 * Instantiates a new AAI exception with info.
34 * @param infoHash the info hash
35 * @param info the info
37 public AAIExceptionWithInfo(HashMap<String, Object> infoHash, String info) {
39 setInfoHash(infoHash);
44 * Instantiates a new AAI exception with info.
46 * @param code the code
47 * @param infoHash the info hash
48 * @param info the info
50 public AAIExceptionWithInfo(String code, HashMap<String, Object> infoHash, String info) {
52 setInfoHash(infoHash);
57 * Instantiates a new AAI exception with info.
59 * @param code the code
60 * @param details the details
61 * @param infoHash the info hash
62 * @param info the info
64 public AAIExceptionWithInfo(String code, String details, HashMap<String, Object> infoHash, String info) {
66 setInfoHash(infoHash);
71 * Instantiates a new AAI exception with info.
73 * @param code the code
74 * @param cause the cause
75 * @param infoHash the info hash
76 * @param info the info
78 public AAIExceptionWithInfo(String code, Throwable cause, HashMap<String, Object> infoHash, String info) {
80 setInfoHash(infoHash);
85 * Instantiates a new AAI exception with info.
87 * @param code the code
88 * @param cause the cause
89 * @param details the details
90 * @param infoHash the info hash
91 * @param info the info
93 public AAIExceptionWithInfo(String code, Throwable cause, String details, HashMap<String, Object> infoHash, String info) {
94 super(code, cause, details);
95 setInfoHash(infoHash);
100 * Gets the info hash.
102 * @return the info hash
104 public HashMap<String, Object> getInfoHash() {
109 * Sets the info hash.
111 * @param infoHash the info hash
113 public void setInfoHash(HashMap<String, Object> infoHash) {
114 this.infoHash = infoHash;
122 public String getInfo() {
129 * @param info the new info
131 public void setInfo(String info) {