public class ImportErrorNotifier
extends java.lang.Object
batch outcome
notification
, it's just an extra alert we send out to sys admins.Constructor and Description |
---|
ImportErrorNotifier(ImportEnv env)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
notifyFailure(QueuedImport importData)
Sends an alert email to the sys admin if a sys admin email is configured.
|
void |
notifyFailure(QueuedImport importData,
java.lang.Exception e)
Sends an alert email to the sys admin if a sys admin email is configured.
|
public ImportErrorNotifier(ImportEnv env)
env
- the import environment.java.lang.NullPointerException
- if the argument is null
.public void notifyFailure(QueuedImport importData)
importData
- the import that failed.java.lang.NullPointerException
- if any argument is null
.public void notifyFailure(QueuedImport importData, java.lang.Exception e)
importData
- the import that failed.e
- unforeseen error occurred while running the import.java.lang.NullPointerException
- if any argument is null
.