dk.netarkivet.common.utils
Class EMailNotifications
java.lang.Object
dk.netarkivet.common.utils.Notifications
dk.netarkivet.common.utils.EMailNotifications
public class EMailNotifications
- extends Notifications
Handles serious errors by sending email.
Field Summary |
static java.lang.String |
MAIL_RECEIVER_SETTING
settings.common.notifications.receiver:
The setting for the receiver of email notifications. |
static java.lang.String |
MAIL_SENDER_SETTING
settings.common.notifications.sender:
The setting for the sender of email notifications (and receiver of
bounces). |
Method Summary |
void |
errorEvent(java.lang.String message,
java.lang.Throwable e)
Sends an error message notification including an exception. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAIL_RECEIVER_SETTING
public static java.lang.String MAIL_RECEIVER_SETTING
- settings.common.notifications.receiver:
The setting for the receiver of email notifications.
MAIL_SENDER_SETTING
public static java.lang.String MAIL_SENDER_SETTING
- settings.common.notifications.sender:
The setting for the sender of email notifications (and receiver of
bounces).
EMailNotifications
public EMailNotifications()
errorEvent
public void errorEvent(java.lang.String message,
java.lang.Throwable e)
- Sends an error message notification including an exception.
- Specified by:
errorEvent
in class Notifications
- Parameters:
message
- The error message to notify about.e
- The exception to notify about.