issue #86 handler, intercept方法签名添加throw WxException

This commit is contained in:
Daniel Qian
2015-01-23 17:20:05 +08:00
parent 8ec76bda59
commit b921490253
9 changed files with 119 additions and 66 deletions

View File

@@ -0,0 +1,19 @@
package me.chanjar.weixin.common.util;
import me.chanjar.weixin.common.exception.WxErrorException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class LogExceptionHandler implements WxErrorExceptionHandler {
private Logger log = LoggerFactory.getLogger(WxErrorExceptionHandler.class);
@Override
public void handle(WxErrorException e) {
log.error("Error happens", e);
}
}

View File

@@ -0,0 +1,12 @@
package me.chanjar.weixin.common.util;
import me.chanjar.weixin.common.exception.WxErrorException;
/**
* WxErrorException处理器
*/
public interface WxErrorExceptionHandler {
public void handle(WxErrorException e);
}