2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 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=========================================================
21 package org.openecomp.aai.exceptions;
23 import java.util.HashMap;
25 public class AAIExceptionWithInfo extends AAIException {
27 HashMap<String, Object> infoHash;
31 * Instantiates a new AAI exception with info.
33 * @param infoHash the info hash
34 * @param info the info
36 public AAIExceptionWithInfo(HashMap<String, Object> infoHash, String info) {
38 setInfoHash(infoHash);
43 * Instantiates a new AAI exception with info.
45 * @param code the code
46 * @param infoHash the info hash
47 * @param info the info
49 public AAIExceptionWithInfo(String code, HashMap<String, Object> infoHash, String info) {
51 setInfoHash(infoHash);
56 * Instantiates a new AAI exception with info.
58 * @param code the code
59 * @param details the details
60 * @param infoHash the info hash
61 * @param info the info
63 public AAIExceptionWithInfo(String code, String details, HashMap<String, Object> infoHash, String info) {
65 setInfoHash(infoHash);
70 * Instantiates a new AAI exception with info.
72 * @param code the code
73 * @param cause the cause
74 * @param infoHash the info hash
75 * @param info the info
77 public AAIExceptionWithInfo(String code, Throwable cause, HashMap<String, Object> infoHash, String info) {
79 setInfoHash(infoHash);
84 * Instantiates a new AAI exception with info.
86 * @param code the code
87 * @param cause the cause
88 * @param details the details
89 * @param infoHash the info hash
90 * @param info the info
92 public AAIExceptionWithInfo(String code, Throwable cause, String details, HashMap<String, Object> infoHash, String info) {
93 super(code, cause, details);
94 setInfoHash(infoHash);
101 * @return the info hash
103 public HashMap<String, Object> getInfoHash() {
108 * Sets the info hash.
110 * @param infoHash the info hash
112 public void setInfoHash(HashMap<String, Object> infoHash) {
113 this.infoHash = infoHash;
121 public String getInfo() {
128 * @param info the new info
130 public void setInfo(String info) {