public static enum FileStorageException.Type extends java.lang.Enum<FileStorageException.Type>
Enum Constant and Description |
---|
FILE_ALREADY_EXISTS |
FILE_NOT_FOUND |
IO_EXCEPTION |
MORE_THAN_ONE_FILE |
STORAGE_INACCESSIBLE |
Modifier and Type | Method and Description |
---|---|
static FileStorageException.Type |
fromHttpStatus(int status) |
int |
getHttpStatus() |
java.lang.String |
getMessage() |
static FileStorageException.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileStorageException.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileStorageException.Type IO_EXCEPTION
public static final FileStorageException.Type FILE_ALREADY_EXISTS
public static final FileStorageException.Type FILE_NOT_FOUND
public static final FileStorageException.Type MORE_THAN_ONE_FILE
public static final FileStorageException.Type STORAGE_INACCESSIBLE
public static FileStorageException.Type[] values()
for (FileStorageException.Type c : FileStorageException.Type.values()) System.out.println(c);
public static FileStorageException.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getMessage()
public int getHttpStatus()
public static FileStorageException.Type fromHttpStatus(int status)