Enum Class ExitCode
- All Implemented Interfaces:
Serializable, Comparable<ExitCode>, Constable
The exit status indicated by the program when it terminates. Each exit code has a specific meaning.
SUCCESSINVALID_COMMAND_LINE_ARGUMENTSINVALID_LOGGING_LEVELINVALID_CONFIGURATIONCONFIGURATION_FILE_DOES_NOT_EXISTCONFIGURATION_FILE_IS_NOT_A_FILECONFIGURATION_FILE_DOES_NOT_MATCH_EXPECTED_FORMATIO_ERRORIO_ERROR_WHILE_READING_CONFIGURATION_FILEIO_ERROR_WHILE_FETCHING_IP_LISTSIO_ERROR_WHILE_WRITING_IP_LISTSINTERRUPTEDINTERNAL_ERROR
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe given configuration file does not exist at the specified path.The givenConfigurationdoes not match the expected format.The given configuration file is not a regular file (e.g. it is a directory).An unexpected error occurred that does not fall into any of the other categories.AnInterruptedExceptionoccurred.The given command-line parameters were invalid.The givenConfigurationfile was invalid.The given loggingLevelwas invalid.An input/output error occurred.An input/output error occurred while downloading the IP list(s).An input/output error occurred while reading the configuration file.An input/output error occurred while reading aFilein the application's resources folder.An input/output error occurred while writing the IP list(s) to the target file(s).The program terminated successfully. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
SUCCESS
The program terminated successfully. -
INVALID_COMMAND_LINE_ARGUMENTS
The given command-line parameters were invalid. -
INVALID_LOGGING_LEVEL
The given loggingLevelwas invalid. -
INVALID_CONFIGURATION
The givenConfigurationfile was invalid. -
CONFIGURATION_FILE_DOES_NOT_EXIST
The given configuration file does not exist at the specified path. -
CONFIGURATION_FILE_IS_NOT_A_FILE
The given configuration file is not a regular file (e.g. it is a directory). -
CONFIGURATION_FILE_DOES_NOT_MATCH_EXPECTED_FORMAT
The givenConfigurationdoes not match the expected format. -
IO_ERROR
An input/output error occurred. -
IO_ERROR_WHILE_READING_CONFIGURATION_FILE
-
IO_ERROR_WHILE_FETCHING_IP_LISTS
An input/output error occurred while downloading the IP list(s). -
IO_ERROR_WHILE_WRITING_IP_LISTS
-
IO_ERROR_WHILE_READING_RESOURCE_FILE
-
INTERRUPTED
AnInterruptedExceptionoccurred. -
INTERNAL_ERROR
An unexpected error occurred that does not fall into any of the other categories.
-
-
Field Details
-
code
public final @Range(from=0L,to=2147483647L) int code
-
-
Constructor Details
-
ExitCode
private ExitCode(int code)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-