edu.sc.seis.fissuresUtil.exceptionHandler
Class MailExceptionReporter

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.exceptionHandler.ResultMailer
      extended by edu.sc.seis.fissuresUtil.exceptionHandler.MailExceptionReporter
All Implemented Interfaces:
ExceptionReporter

public class MailExceptionReporter
extends ResultMailer
implements ExceptionReporter

The four key strings' SMTP, SUBJECT, FROM and TO values must be set in the passed in properties


Field Summary
static java.lang.String LIMIT
          mail.limit specifies the number of emails to send
 
Fields inherited from class edu.sc.seis.fissuresUtil.exceptionHandler.ResultMailer
FROM, SMTP, SUBJECT, TO
 
Constructor Summary
MailExceptionReporter(java.util.Properties props)
           
 
Method Summary
static void addMailExceptionReporter(java.util.Properties mailProps)
           
 void report(java.lang.String message, java.lang.Throwable e, java.util.List sections)
           
 
Methods inherited from class edu.sc.seis.fissuresUtil.exceptionHandler.ResultMailer
mail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LIMIT

public static final java.lang.String LIMIT
mail.limit specifies the number of emails to send

See Also:
Constant Field Values
Constructor Detail

MailExceptionReporter

public MailExceptionReporter(java.util.Properties props)
                      throws MissingPropertyException
Throws:
MissingPropertyException
Method Detail

report

public void report(java.lang.String message,
                   java.lang.Throwable e,
                   java.util.List sections)
            throws java.lang.Exception
Specified by:
report in interface ExceptionReporter
Throws:
java.lang.Exception

addMailExceptionReporter

public static void addMailExceptionReporter(java.util.Properties mailProps)