public enum BasicFileConnectorErrorCode extends Enum<BasicFileConnectorErrorCode> implements ExceptionMessageSet
| Enum Constant and Description |
|---|
DIRECTORY_SPECIFIED |
FILE_NOT_FOUND |
FILE_NOT_READABLE |
FILE_NOT_SPECIFIED |
UNEXPECTED_IO_EXCEPTION |
UNEXPECTED_SECURITY_EXCEPTION |
| Modifier and Type | Method and Description |
|---|---|
ExceptionMessageDefinition |
getMessageDefinition()
Retrieve a message definition object for an exception.
|
ExceptionMessageDefinition |
getMessageDefinition(String... params)
Retrieve a message definition object for an exception.
|
String |
toString()
JSON-style toString
|
static BasicFileConnectorErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BasicFileConnectorErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BasicFileConnectorErrorCode FILE_NOT_SPECIFIED
public static final BasicFileConnectorErrorCode DIRECTORY_SPECIFIED
public static final BasicFileConnectorErrorCode FILE_NOT_READABLE
public static final BasicFileConnectorErrorCode FILE_NOT_FOUND
public static final BasicFileConnectorErrorCode UNEXPECTED_SECURITY_EXCEPTION
public static final BasicFileConnectorErrorCode UNEXPECTED_IO_EXCEPTION
public static BasicFileConnectorErrorCode[] values()
for (BasicFileConnectorErrorCode c : BasicFileConnectorErrorCode.values()) System.out.println(c);
public static BasicFileConnectorErrorCode 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 ExceptionMessageDefinition getMessageDefinition()
getMessageDefinition in interface ExceptionMessageSetpublic ExceptionMessageDefinition getMessageDefinition(String... params)
getMessageDefinition in interface ExceptionMessageSetparams - array of parameters (all strings). They are inserted into the message according to the numbering in the message text.public String toString()
toString in class Enum<BasicFileConnectorErrorCode>Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.