edu.sc.seis.fissuresUtil.exceptionHandler
Class MailExceptionReporter
java.lang.Object
edu.sc.seis.fissuresUtil.exceptionHandler.ResultMailer
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 |
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 |
LIMIT
public static final java.lang.String LIMIT
- mail.limit specifies the number of emails to send
- See Also:
- Constant Field Values
MailExceptionReporter
public MailExceptionReporter(java.util.Properties props)
throws MissingPropertyException
- Throws:
MissingPropertyException
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)