Enum Class的使用
cn.isliu.core.enums.ErrorCode.ErrorCategory
使用ErrorCode.ErrorCategory的程序包
-
cn.isliu.core.enums中ErrorCode.ErrorCategory的使用
修饰符和类型方法说明ErrorCode.getCategory()获取错误分类static ErrorCode.ErrorCategoryReturns the enum constant of this class with the specified name.static ErrorCode.ErrorCategory[]ErrorCode.ErrorCategory.values()Returns an array containing the constants of this enum class, in the order they are declared.修饰符和类型方法说明static ErrorCode[]ErrorCode.getByCategory(ErrorCode.ErrorCategory category) 根据分类获取所有错误代码 -
cn.isliu.core.exception中ErrorCode.ErrorCategory的使用
返回变量类型为ErrorCode.ErrorCategory的类型的cn.isliu.core.exception中的方法