Merge 1806 code of vid-common
[vid.git] / vid-app-common / src / main / java / org / onap / vid / aai / exceptions / InvalidAAIResponseException.java
1 package org.onap.vid.aai.exceptions;
2
3 import org.onap.vid.aai.AaiResponse;
4 import org.onap.vid.exceptions.GenericUncheckedException;
5
6 /**
7  * Created by Oren on 7/4/17.
8  */
9 public class InvalidAAIResponseException extends GenericUncheckedException {
10     public InvalidAAIResponseException(AaiResponse aaiResponse) {
11         super(String.format("errorCode: %d, raw: %s", aaiResponse.getHttpCode(), aaiResponse.getErrorMessage()));
12     }
13 }