mirror of
https://github.com/google/nomulus
synced 2026-01-08 23:23:32 +00:00
Add map reduce job for contact import
Some additional changes were made by Ben McIlwain. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=133875824
This commit is contained in:
committed by
Ben McIlwain
parent
aed3c0f0d0
commit
28eeda189d
@@ -36,11 +36,14 @@ import google.registry.xjc.rderegistrar.XjcRdeRegistrar;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import javax.inject.Inject;
|
||||
import javax.xml.bind.JAXBException;
|
||||
import javax.xml.stream.XMLStreamException;
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
/** Utility functions for escrow file import. */
|
||||
public final class RdeImportUtils {
|
||||
/**
|
||||
* Utility functions for escrow file import.
|
||||
*/
|
||||
public class RdeImportUtils {
|
||||
|
||||
private static final FormattingLogger logger = FormattingLogger.getLoggerForCallerClass();
|
||||
|
||||
@@ -147,7 +150,7 @@ public final class RdeImportUtils {
|
||||
String.format("Registrar '%s' not found in the registry", registrar.getId()));
|
||||
}
|
||||
}
|
||||
} catch (XMLStreamException e) {
|
||||
} catch (XMLStreamException | JAXBException e) {
|
||||
throw new IllegalArgumentException(
|
||||
String.format("Invalid XML file: '%s'", escrowFilePath), e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user