public enum DataFolderConnectorErrorCode extends Enum<DataFolderConnectorErrorCode>
| Enum Constant and Description |
|---|
FILE_NOT_DIRECTORY |
FOLDER_NOT_FOUND |
FOLDER_NOT_READABLE |
FOLDER_NOT_SPECIFIED |
UNEXPECTED_IO_EXCEPTION |
UNEXPECTED_SECURITY_EXCEPTION |
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorMessageId()
Returns the unique identifier for the error message.
|
String |
getFormattedErrorMessage(String... params)
Returns the error message with the placeholders filled out with the supplied parameters.
|
int |
getHTTPErrorCode() |
String |
getSystemAction()
Returns a description of the action taken by the system when the condition that caused this exception was
detected.
|
String |
getUnformattedErrorMessage()
Returns the error message with placeholders for specific details.
|
String |
getUserAction()
Returns instructions of how to resolve the issue reported in this exception.
|
String |
toString()
JSON-style toString
|
static DataFolderConnectorErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataFolderConnectorErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataFolderConnectorErrorCode FOLDER_NOT_SPECIFIED
public static final DataFolderConnectorErrorCode FILE_NOT_DIRECTORY
public static final DataFolderConnectorErrorCode FOLDER_NOT_READABLE
public static final DataFolderConnectorErrorCode FOLDER_NOT_FOUND
public static final DataFolderConnectorErrorCode UNEXPECTED_SECURITY_EXCEPTION
public static final DataFolderConnectorErrorCode UNEXPECTED_IO_EXCEPTION
public static DataFolderConnectorErrorCode[] values()
for (DataFolderConnectorErrorCode c : DataFolderConnectorErrorCode.values()) System.out.println(c);
public static DataFolderConnectorErrorCode 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 int getHTTPErrorCode()
public String getErrorMessageId()
public String getUnformattedErrorMessage()
public String getFormattedErrorMessage(String... params)
params - strings that plug into the placeholders in the errorMessagepublic String getSystemAction()
public String getUserAction()
public String toString()
toString in class Enum<DataFolderConnectorErrorCode>Copyright © 2018–2020 ODPi. All rights reserved.