Search in sources :

Example 1 with ExportRemoteException

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;
        }
    }
}
Also used : ExportRemoteException(net.geoprism.registry.etl.export.ExportRemoteException) UnexpectedRemoteResponse(net.geoprism.registry.etl.export.UnexpectedRemoteResponse)

Aggregations

ExportRemoteException (net.geoprism.registry.etl.export.ExportRemoteException)1 UnexpectedRemoteResponse (net.geoprism.registry.etl.export.UnexpectedRemoteResponse)1