com.norconex.jef.mail
Class ErrorMailNotifier

java.lang.Object
  extended by com.norconex.jef.mail.AbstractMailNotifier
      extended by com.norconex.jef.mail.ErrorMailNotifier
All Implemented Interfaces:
IErrorHandler

public class ErrorMailNotifier
extends AbstractMailNotifier
implements IErrorHandler

Simple error handler notifying email recipients when exceptions occur.

Author:
Pascal Essiembre

Constructor Summary
ErrorMailNotifier(String host, String sender, String recipient)
           
ErrorMailNotifier(String host, String sender, String[] recipients)
           
 
Method Summary
protected  String getStackTrace(Throwable t)
           
 void handleError(IErrorEvent event)
          Handles an error.
 
Methods inherited from class com.norconex.jef.mail.AbstractMailNotifier
getLogTail, getMailer, getRecipients
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorMailNotifier

public ErrorMailNotifier(String host,
                         String sender,
                         String recipient)
See Also:
AbstractMailNotifier.AbstractMailNotifier(String, String, String)

ErrorMailNotifier

public ErrorMailNotifier(String host,
                         String sender,
                         String[] recipients)
See Also:
AbstractMailNotifier.AbstractMailNotifier(String, String, String[])
Method Detail

handleError

public final void handleError(IErrorEvent event)
Description copied from interface: IErrorHandler
Handles an error.

Specified by:
handleError in interface IErrorHandler
Parameters:
event - error event

getStackTrace

protected final String getStackTrace(Throwable t)


Copyright © 2007-2013 Norconex Inc.. All Rights Reserved.