sink.emitImportCreated(owner);
recordImportSuccess(owner, data, overrides, filename);
}
catch (IOException e) {
recordImportFailure(owner, data, e, filename);
throw new IseException(i18n.tr("Error reading export archive"), e);
}
// These come back with internationalized messages, so we can transfer:
catch (SyncDataFormatException e) {
recordImportFailure(owner, data, e, filename);
throw new BadRequestException(e.getMessage(), e);
}
catch (ImporterException e) {
recordImportFailure(owner, data, e, filename);
throw new IseException(e.getMessage(), e);
}
// Grab candlepin exceptions to record the error and then rethrow
// to pass on the http return code
catch (CandlepinException e) {
recordImportFailure(owner, data, e, filename);