com.egzosn.pay.common.util.LogExceptionHandler Maven / Gradle / Ivy
package com.egzosn.pay.common.util;
import com.egzosn.pay.common.api.PayErrorExceptionHandler;
import com.egzosn.pay.common.exception.PayErrorException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* LogExceptionHandler 日志处理器
* @author egan
*
* email [email protected]
* date 2016-6-1 11:28:01
*
*
* source chanjarster/weixin-java-tools
*
*/
public class LogExceptionHandler implements PayErrorExceptionHandler {
protected final Log log = LogFactory.getLog(PayErrorExceptionHandler.class);
@Override
public void handle(PayErrorException e) {
log.error("Error happens", e);
}
}