Package org.verapdf.cli
Enum Class CliConstants.ExitCodes
- All Implemented Interfaces:
Serializable,Comparable<CliConstants.ExitCodes>,java.lang.constant.Constable
- Enclosing class:
- CliConstants
All valid exit codes from veraPDF CLI
- Version:
- 0.1
- Author:
- Carl Wilson carlwilson AT github
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBad command line parametersSome PDF files encrypted.Failed to start multiprocessFailed to parse one or more filesInterrupted exceptionAll files parsed, some invalidJava I/O Exception during processingJAXB exception thrown while processingNo files from passed list or directoryOut of MemoryAll files parsed and validveraPDF exception thrown while processing -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CliConstants.ExitCodesfromValue(int code) static CliConstants.ExitCodesReturns the enum constant of this class with the specified name.static CliConstants.ExitCodes[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VALID
All files parsed and valid -
INVALID
All files parsed, some invalid -
BAD_PARAMS
Bad command line parameters -
OOM
Out of Memory -
NO_FILES
No files from passed list or directory -
IO_EXCEPTION
Java I/O Exception during processing -
FAILED_PARSING
Failed to parse one or more files -
ENCRYPTED_FILES
Some PDF files encrypted. -
VERAPDF_EXCEPTION
veraPDF exception thrown while processing -
JAXB_EXCEPTION
JAXB exception thrown while processing -
FAILED_MULTIPROCESS_START
Failed to start multiprocess -
INTERRUPTED_EXCEPTION
Interrupted exception
-
-
Field Details
-
value
public final int valueThe numeric exit code for return to OS. -
message
The appropriate help message for the exitCode
-
-
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
-
fromValue
-