use of net.geoprism.registry.etl.export.ExportRemoteException in project geoprism-registry by terraframe.
the class DHIS2FeatureService method validateDhis2Response.
public void validateDhis2Response(DHIS2Response resp) {
if (!resp.isSuccess()) {
if (resp.hasMessage()) {
ExportRemoteException ere = new ExportRemoteException();
ere.setRemoteError(resp.getMessage());
throw ere;
} else {
UnexpectedRemoteResponse re = new UnexpectedRemoteResponse();
throw re;
}
}
}
Aggregations