mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-31 18:46:10 +08:00 
			
		
		
		
	为WxErrorException添加一个构造方法,用于必要时打印出错误根源信息
This commit is contained in:
		| @ -13,6 +13,11 @@ public class WxErrorException extends Exception { | |||||||
|     this.error = error; |     this.error = error; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  |   public WxErrorException(WxError error, Throwable cause) { | ||||||
|  |     super(error.toString(), cause); | ||||||
|  |     this.error = error; | ||||||
|  |   } | ||||||
|  |  | ||||||
|   public WxError getError() { |   public WxError getError() { | ||||||
|     return this.error; |     return this.error; | ||||||
|   } |   } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Binary Wang
					Binary Wang