Enum Class的使用
cn.isliu.core.enums.ErrorCode
使用ErrorCode的程序包
-
cn.isliu.core.enums中ErrorCode的使用
返回ErrorCode的cn.isliu.core.enums中的方法修饰符和类型方法说明static ErrorCode[]ErrorCode.getByCategory(ErrorCode.ErrorCategory category) 根据分类获取所有错误代码static ErrorCode根据错误代码获取枚举值static ErrorCodeReturns the enum constant of this class with the specified name.static ErrorCode[]ErrorCode.values()Returns an array containing the constants of this enum class, in the order they are declared. -
cn.isliu.core.exception中ErrorCode的使用
修饰符和类型方法说明ExceptionHandler.ExceptionRecord.getErrorCode()ExceptionHandler.RecoveryAdvice.getErrorCode()FsHelperException.getErrorCode()获取错误代码ExceptionHandler.ExceptionStatistics.getMostFrequentError()返回变量类型为ErrorCode的类型的cn.isliu.core.exception中的方法参数类型为ErrorCode的cn.isliu.core.exception中的方法修饰符和类型方法说明static FsHelperException.Builder创建构建器static TokenManagementExceptionTokenManagementException.withRetryInfo(ErrorCode errorCode, String message, int retryCount, int maxRetries, Throwable cause) Create token management exception with retry information参数类型为ErrorCode的cn.isliu.core.exception中的构造器限定符构造器说明ExceptionRecord(String exceptionId, ErrorCode errorCode, String message, String userFriendlyMessage, LocalDateTime timestamp, Map<String, Object> context) FsHelperException(ErrorCode errorCode) 构造函数 - 仅包含错误代码FsHelperException(ErrorCode errorCode, String message) 构造函数 - 包含错误代码和自定义消息FsHelperException(ErrorCode errorCode, String message, Throwable cause) 构造函数 - 包含错误代码、消息和原因构造函数 - 包含错误代码、消息和上下文完整构造函数TokenManagementException(ErrorCode errorCode, String message) Constructor - specifies specific error codeTokenManagementException(ErrorCode errorCode, String message, Throwable cause) Constructor - specifies specific error code with causeConstructor - includes context informationTokenManagementException(ErrorCode errorCode, String message, Map<String, Object> context, Throwable cause) Constructor - full parameters类型变量类型为ErrorCode的cn.isliu.core.exception中的构造器参数限定符构造器说明ExceptionStatistics(Map<ErrorCode, Long> errorCodeCounts, Map<ErrorCode.ErrorCategory, Long> categoryCounts, List<ExceptionHandler.ExceptionRecord> recentExceptions) -
cn.isliu.core.logging中ErrorCode的使用
参数类型为ErrorCode的cn.isliu.core.logging中的方法