public enum SftpErrorMessage extends Enum<SftpErrorMessage>
Enum Constant and Description |
---|
BAD_MESSAGE |
NO_SUCH_FILE
未找到文件
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
boolean |
isCause(Exception e)
是否为此错误原因
|
static SftpErrorMessage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SftpErrorMessage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SftpErrorMessage NO_SUCH_FILE
public static final SftpErrorMessage BAD_MESSAGE
public static SftpErrorMessage[] values()
for (SftpErrorMessage c : SftpErrorMessage.values()) System.out.println(c);
public static SftpErrorMessage valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getMessage()
public boolean isCause(Exception e)
e
- eCopyright © 2024. All rights reserved.