Package net.minheur.potoflux.utils.close
Enum Class ExitCode
- All Implemented Interfaces:
Serializable,Comparable<ExitCode>,Constable
Different exit codes that can be used to close the app, making it easy to debug
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUsed when boot failedUsed when a registration failing error got thrown, usually traducing a duped idUsed when the app closed successfullyUsed when there were a random exception has been thrown in the main thread -
Method Summary
-
Enum Constant Details
-
SUCCESS
Used when the app closed successfully -
UNCAUGHT_EXCEPTION
Used when there were a random exception has been thrown in the main thread -
BOOTSTRAP_FAILED
Used when boot failed -
REGISTRATION_FAILED
Used when a registration failing error got thrown, usually traducing a duped id
-
-
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
-
code
public int code()Gets the actual code- Returns:
code
-