dk.netarkivet.common.utils
Class Notifications

java.lang.Object
  extended by dk.netarkivet.common.utils.Notifications
Direct Known Subclasses:
EMailNotifications, PrintNotifications

public abstract class Notifications
extends java.lang.Object

This class encapsulates reacting to a serious error message.


Constructor Summary
Notifications()
           
 
Method Summary
 void errorEvent(java.lang.String message)
          Notify about an error event.
abstract  void errorEvent(java.lang.String message, java.lang.Throwable e)
          Notifies about an error event including an exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Notifications

public Notifications()
Method Detail

errorEvent

public void errorEvent(java.lang.String message)
Notify about an error event. This is the same as calling errorEvent(String, Throwable) with null as the second parameter.

Parameters:
message - The error message to notify about.

errorEvent

public abstract void errorEvent(java.lang.String message,
                                java.lang.Throwable e)
Notifies about an error event including an exception.

Parameters:
message - The error message to notify about.
e - The exception to notify about. May be null for no exception.