Enum Class的使用
cn.hamm.airpower.enums.ServiceError
使用ServiceError的程序包
-
cn.hamm.airpower.enums中ServiceError的使用
修饰符和类型方法说明static ServiceErrorReturns the enum constant of this class with the specified name.static ServiceError[]ServiceError.values()Returns an array containing the constants of this enum class, in the order they are declared. -
cn.hamm.airpower.exception中ServiceError的使用
参数类型为ServiceError的cn.hamm.airpower.exception中的构造器限定符构造器说明ServiceException(@NotNull ServiceError errorCode) 直接抛出一个异常ServiceException(@NotNull ServiceError errorCode, String message) 直接抛出一个异常