2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017-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=========================================================
20 package org.onap.aai.exceptions;
22 import java.util.HashMap;
24 public class AAIExceptionWithInfo extends AAIException {
26 HashMap<String, Object> infoHash;
30 * Instantiates a new AAI exception with info.
32 * @param infoHash the info hash
33 * @param info the info
35 public AAIExceptionWithInfo(HashMap<String, Object> infoHash, String info) {
37 setInfoHash(infoHash);
42 * Instantiates a new AAI exception with info.
44 * @param code the code
45 * @param infoHash the info hash
46 * @param info the info
48 public AAIExceptionWithInfo(String code, HashMap<String, Object> infoHash, String info) {
50 setInfoHash(infoHash);
55 * Instantiates a new AAI exception with info.
57 * @param code the code
58 * @param details the details
59 * @param infoHash the info hash
60 * @param info the info
62 public AAIExceptionWithInfo(String code, String details, HashMap<String, Object> infoHash, String info) {
64 setInfoHash(infoHash);
69 * Instantiates a new AAI exception with info.
71 * @param code the code
72 * @param cause the cause
73 * @param infoHash the info hash
74 * @param info the info
76 public AAIExceptionWithInfo(String code, Throwable cause, HashMap<String, Object> infoHash, String info) {
78 setInfoHash(infoHash);
83 * Instantiates a new AAI exception with info.
85 * @param code the code
86 * @param cause the cause
87 * @param details the details
88 * @param infoHash the info hash
89 * @param info the info
91 public AAIExceptionWithInfo(String code, Throwable cause, String details, HashMap<String, Object> infoHash, String info) {
92 super(code, cause, details);
93 setInfoHash(infoHash);
100 * @return the info hash
102 public HashMap<String, Object> getInfoHash() {
107 * Sets the info hash.
109 * @param infoHash the info hash
111 public void setInfoHash(HashMap<String, Object> infoHash) {
112 this.infoHash = infoHash;
120 public String getInfo() {
127 * @param info the new info
129 public void setInfo(String info) {