da670967591ce704f49772405a4ccf910a651dd6.svn-base 968 B

123456789101112131415161718192021222324252627282930313233
  1. package com.yihu.jkedu.comm;
  2. /**
  3. * <p>Description:异常编码实体类</p>
  4. * <p>Company: yihu.com</p>
  5. */
  6. public final class Code {
  7. //成功
  8. public static final int SUCCESS = 10000;
  9. //失败
  10. public static final int FAIL = -10000;
  11. //3参数不匹配异常
  12. public static final int ILLEGAL_ARGUMENT_MISMATCH_CODE = -10001;
  13. //4JSON格式异常
  14. public static final int JSON_ILLEGAL_CODE = -10002;
  15. //4参数有误,数据不存在
  16. public static final int DATA_NO_EXIST = -10003;
  17. //4中间某个业务失败异常编码
  18. public static final int BUSINESS_ERROR_CODE = -10004;
  19. //重复提交,比如某个问题已经关闭再次关闭时提示 已经关闭
  20. public static final int BUSINESS_REPEAT_SUCCESS = -10005;
  21. //异常
  22. public static final int ERROR = -14444;
  23. //已绑定手机
  24. public static final int BINDED = 1;
  25. //未绑定手机
  26. public static final int NOBIND = 2;
  27. }