public enum FileExceptionEnum extends Enum<FileExceptionEnum> implements cn.stylefeng.roses.kernel.model.exception.AbstractBaseExceptionEnum
| 枚举常量和说明 |
|---|
FILE_NAME_ERROR |
FILE_NAME_FORMAT_ERROR |
FILE_NOT_FOUND |
IO_ERROR |
| 限定符和类型 | 方法和说明 |
|---|---|
Integer |
getCode() |
String |
getMessage() |
void |
setCode(int code) |
void |
setMessage(String message) |
static FileExceptionEnum |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static FileExceptionEnum[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final FileExceptionEnum IO_ERROR
public static final FileExceptionEnum FILE_NOT_FOUND
public static final FileExceptionEnum FILE_NAME_FORMAT_ERROR
public static final FileExceptionEnum FILE_NAME_ERROR
public static FileExceptionEnum[] values()
for (FileExceptionEnum c : FileExceptionEnum.values()) System.out.println(c);
public static FileExceptionEnum valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public Integer getCode()
getCode 在接口中 cn.stylefeng.roses.kernel.model.exception.AbstractBaseExceptionEnumpublic void setCode(int code)
public String getMessage()
getMessage 在接口中 cn.stylefeng.roses.kernel.model.exception.AbstractBaseExceptionEnumpublic void setMessage(String message)
Copyright © 2018. All rights reserved.