枚举 ApiErrorCode

java.lang.Object
java.lang.Enum<ApiErrorCode>
com.baomidou.mybatisplus.extension.enums.ApiErrorCode
所有已实现的接口:
IErrorCode, Serializable, Comparable<ApiErrorCode>, java.lang.constant.Constable

@Deprecated
public enum ApiErrorCode
extends Enum<ApiErrorCode>
implements IErrorCode
已过时。
REST API 错误码
从以下版本开始:
2017-06-26
作者:
hubin
  • 枚举常量详细资料

    • FAILED

      public static final ApiErrorCode FAILED
      已过时。
      失败
    • SUCCESS

      public static final ApiErrorCode SUCCESS
      已过时。
      成功
  • 方法详细资料

    • values

      public static ApiErrorCode[] values()
      已过时。
      按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
      返回:
      按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
    • valueOf

      public static ApiErrorCode valueOf​(String name)
      已过时。
      返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
      NullPointerException - 如果参数为空值
    • fromCode

      public static ApiErrorCode fromCode​(long code)
      已过时。
    • getCode

      public long getCode()
      已过时。
      从接口复制的说明: IErrorCode
      错误编码 -1、失败 0、成功
      指定者:
      getCode 在接口中 IErrorCode
    • getMsg

      public String getMsg()
      已过时。
      从接口复制的说明: IErrorCode
      错误描述
      指定者:
      getMsg 在接口中 IErrorCode
    • toString

      public String toString()
      已过时。
      覆盖:
      toString 在类中 Enum<ApiErrorCode>