All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.uiuc.ncsa.myproxy.oa4mp.server.util.ExceptionEventNotifier Maven / Gradle / Ivy

The newest version!
package edu.uiuc.ncsa.myproxy.oa4mp.server.util;

import edu.uiuc.ncsa.security.core.util.MyLoggingFacade;
import edu.uiuc.ncsa.security.servlet.Notifier;
import edu.uiuc.ncsa.security.util.mail.MailUtil;

import java.util.Map;

/**
 * 

Created by Jeff Gaynor
* on 9/18/12 at 11:27 AM */ public class ExceptionEventNotifier extends Notifier implements ExceptionEventListener { public ExceptionEventNotifier(MailUtil mailUtil, MyLoggingFacade loggingFacade) { super(mailUtil, loggingFacade); } @Override public void fireExceptionCaught(ExceptionEvent exceptionEvent) { loggingFacade.info("preparing to send notice for exception"); Map params = exceptionEvent.getState(); mailUtil.sendMessage(params); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy