public enum SysExits extends Enum<SysExits>
Enum Constant and Description |
---|
EX_CANNOT_EXEC_CMD
cannot execute invoked command.
|
EX_CANTCREAT
A (user specified) output file cannot be created.
|
EX_CMD_NOT_FOUND
Command not found.
|
EX_CONFIG
Something was found in an unconfigured or misconfigured state.
|
EX_DATAERR
The input data was incorrect in some way.
|
EX_GENERAL
Catch all for general errors.
|
EX_INVALID_ARG_TO_EXIT
Invalid argument to exit.
|
EX_IOERR
An error occurred while doing I/O on some file.
|
EX_NOHOST
The host specified did not exist.
|
EX_NOINPUT
An input file (not a system file) did not exist or was not readable.
|
EX_NOPERM
You did not have sufficient permission to perform the operation.
|
EX_NOUSER
The user specified did not exist.
|
EX_OSERR
An operating system error has been detected.
|
EX_OSFILE
Some system file (e.g., /etc/passwd, /var/run/utmp,etc.) does not exist, cannot be opened, or has some sort of
error (e.g., syntax error).
|
EX_PROTOCOL
The remote system returned something that was ``not possible'' during a protocol exchange.
|
EX_SHELL_BUILTIN_MISSUSE
Shell build in miss-use.
|
EX_SIG_10 |
EX_SIG_11 |
EX_SIG_12 |
EX_SIG_16 |
EX_SIG_17 |
EX_SIG_18 |
EX_SIG_19 |
EX_SIG_20 |
EX_SIG_21 |
EX_SIG_22 |
EX_SIG_23 |
EX_SIG_24 |
EX_SIG_25 |
EX_SIG_26 |
EX_SIG_27 |
EX_SIG_28 |
EX_SIG_29 |
EX_SIG_30 |
EX_SIG_31 |
EX_SIG_7 |
EX_SIG_ABRT |
EX_SIG_ALRM |
EX_SIG_FPE |
EX_SIG_HUP
Section caused by exit due to signal.
|
EX_SIG_ILL |
EX_SIG_INT |
EX_SIG_KILL |
EX_SIG_PIPE |
EX_SIG_QUIT |
EX_SIG_TERM |
EX_SIG_TRAP |
EX_SOFTWARE
An internal software error has been detected.
|
EX_STATUS_OUT_OF_RANGE |
EX_TEMPFAIL
Temporary failure, indicating something that is not really an error.
|
EX_UNAVAILABLE
A service is unavailable.
|
EX_UNKNOWN
Any return codes not explicitly defined will be associated with "EX_UNKNOWN"
|
EX_USAGE
The command was used incorrectly, e.g., with the wrong number of arguments, a bad flag, a bad syntax in a
parameter, or whatever.
|
OK
Everything is OK.
|
Modifier and Type | Method and Description |
---|---|
int |
exitCode() |
static SysExits |
fromCode(int exitCode) |
boolean |
isError() |
boolean |
isOk() |
static SysExits |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SysExits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SysExits OK
public static final SysExits EX_GENERAL
public static final SysExits EX_SHELL_BUILTIN_MISSUSE
public static final SysExits EX_USAGE
public static final SysExits EX_DATAERR
public static final SysExits EX_NOINPUT
public static final SysExits EX_NOUSER
public static final SysExits EX_NOHOST
public static final SysExits EX_UNAVAILABLE
public static final SysExits EX_SOFTWARE
public static final SysExits EX_OSERR
public static final SysExits EX_OSFILE
public static final SysExits EX_CANTCREAT
public static final SysExits EX_IOERR
public static final SysExits EX_TEMPFAIL
public static final SysExits EX_PROTOCOL
public static final SysExits EX_NOPERM
public static final SysExits EX_CONFIG
public static final SysExits EX_CANNOT_EXEC_CMD
public static final SysExits EX_CMD_NOT_FOUND
public static final SysExits EX_INVALID_ARG_TO_EXIT
public static final SysExits EX_SIG_HUP
public static final SysExits EX_SIG_INT
public static final SysExits EX_SIG_QUIT
public static final SysExits EX_SIG_ILL
public static final SysExits EX_SIG_TRAP
public static final SysExits EX_SIG_ABRT
public static final SysExits EX_SIG_7
public static final SysExits EX_SIG_FPE
public static final SysExits EX_SIG_KILL
public static final SysExits EX_SIG_10
public static final SysExits EX_SIG_11
public static final SysExits EX_SIG_12
public static final SysExits EX_SIG_PIPE
public static final SysExits EX_SIG_ALRM
public static final SysExits EX_SIG_TERM
public static final SysExits EX_SIG_16
public static final SysExits EX_SIG_17
public static final SysExits EX_SIG_18
public static final SysExits EX_SIG_19
public static final SysExits EX_SIG_20
public static final SysExits EX_SIG_21
public static final SysExits EX_SIG_22
public static final SysExits EX_SIG_23
public static final SysExits EX_SIG_24
public static final SysExits EX_SIG_25
public static final SysExits EX_SIG_26
public static final SysExits EX_SIG_27
public static final SysExits EX_SIG_28
public static final SysExits EX_SIG_29
public static final SysExits EX_SIG_30
public static final SysExits EX_SIG_31
public static final SysExits EX_STATUS_OUT_OF_RANGE
public static final SysExits EX_UNKNOWN
public static SysExits[] values()
for (SysExits c : SysExits.values()) System.out.println(c);
public static SysExits 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 exitCode()
public boolean isOk()
public boolean isError()
Copyright © 2018 SPF4J. All rights reserved.