Integrate aai-schema-ingest library into aai-core
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / exceptions / AAIException.java
index 375e00f..f2253a3 100644 (file)
@@ -84,6 +84,7 @@ public class AAIException extends Exception {
 
                try {
                        this.errorObject = ErrorLogHelper.getErrorObject(getCode());
+                       errorObject.setDetails(details);
                } catch (ErrorObjectNotFoundException e) {
                        throw new RuntimeException("Failed to instantiate AAIException with code=" + getCode()
                                                                                 + " - update error.properties before using this exception code");