package com.yeshi.fanli.exception; public class AlipayAccountException extends Exception { // 无余额 public static int CODE_NO_MONEY = 1; // 提现次数超限 public static int CODE_TIMES_LIMIT = 2; // 参数错误 public static int CODE_NO_PARAMS = 3; // 已经被绑定 public static int CODE_ALREADY_BIND = 4; /** * 支付宝账号异常 */ private static final long serialVersionUID = 1L; private int code; private String msg; public int getCode() { return code; } public String getMsg() { return msg; } public AlipayAccountException(int code, String msg) { this.code = code; this.msg = msg; } public AlipayAccountException() { } @Override public String getMessage() { return this.msg; } }