| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- package com.xcgl.weixin.base;
- /**
- * 异常处理类
- *
- * @author rex
- */
- public class ApiException extends RuntimeException {
- private static final long serialVersionUID = 1L;
- /**
- * 异常码
- */
- protected int code;
- public ApiException() {
- super("系统异常");
- this.code = 99;
- }
- public ApiException(String message) {
- super(message);
- this.code = 99;
- }
- public ApiException(int code, String message) {
- super(message);
- this.code = code;
- }
- public int getCode() {
- return code;
- }
- public void setCode(int code) {
- this.code = code;
- }
- }
|