Package com.xinapse.platform
Enum Class ExitStatus
- All Implemented Interfaces:
Serializable
,Comparable<ExitStatus>
,Constable
Exit status codes on program termination.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionExit status when the program has been cancelled by the user (2).Exit status when program arguments conflict with each other (15).Exit status when data is in the wrong format (31).Exit status when there is an error accessing a database (120).Exit status when a badly-formatted DICOM object is encountered (50).Exit status when the clinical use disclaimer has not been acknowledged by the user (101).Exit status for termination when help has been requested (1).Exit status when an output image cannot be created (23).Exit status when an image cannot be opened (21).Exit status when an output image cannot be written (24).Exit status when there are insufficient resources available to perform the operation (80).Exit status when an internal (programming) error has occurred (90).Exit status for when a program argument is invalid (11).Exit status when an image is invalid (22).Exit status when the java virtual machine used is not suitable for running this release of the software (102).Exit status for when a system property used by the program has an invalid value (12).Exit status when a general input/output error occurs (50).Exit status when a compulsory argument is missing (16).Exit status when the java3d is not installed or not installed correctly (103).Exit status when a valid license cannot be found (100).Exit status indicating a non-specific error (20).Exit status for normal program termination (0).Exit status when not enough program arguments are given (13).Exit status when a numerical algorithm fails (30).Exit status when program runs out of memory (91).Exit status when a ROI-related error occurs (25).Exit status when too many program arguments are given (14).Exit status for a unit test fails (92).Exit status when there is an attempt to access an unknown host (110).Exit status when a program argument is not recognised for this program (10). -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the integer exit status code for thisExitStatus
.static ExitStatus
Returns the enum constant of this class with the specified name.static ExitStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
Exit status for normal program termination (0). -
HELP_REQUESTED
Exit status for termination when help has been requested (1). -
CANCELLED_BY_USER
Exit status when the program has been cancelled by the user (2). -
UNRECOGNIZED_ARGUMENT
Exit status when a program argument is not recognised for this program (10). -
INVALID_ARGUMENT
Exit status for when a program argument is invalid (11). -
INVALID_PROPERTY_VALUE
Exit status for when a system property used by the program has an invalid value (12). -
NOT_ENOUGH_ARGUMENTS
Exit status when not enough program arguments are given (13). -
TOO_MANY_ARGUMENTS
Exit status when too many program arguments are given (14). -
CONFLICTING_ARGUMENTS
Exit status when program arguments conflict with each other (15). -
MISSING_ARGUMENT
Exit status when a compulsory argument is missing (16). -
NON_SPECIFIC_ERROR
Exit status indicating a non-specific error (20). -
IMAGE_OPEN_ERROR
Exit status when an image cannot be opened (21). -
INVALID_IMAGE_ERROR
Exit status when an image is invalid (22). -
IMAGE_CREATE_ERROR
Exit status when an output image cannot be created (23). -
IMAGE_WRITE_ERROR
Exit status when an output image cannot be written (24). -
ROI_ERROR
Exit status when a ROI-related error occurs (25). -
NUMERICAL_ERROR
Exit status when a numerical algorithm fails (30). -
DATA_FORMAT_ERROR
Exit status when data is in the wrong format (31). -
IO_ERROR
Exit status when a general input/output error occurs (50). -
DICOM_FORMAT_ERROR
Exit status when a badly-formatted DICOM object is encountered (50). -
INSUFFICIENT_RESOURCES
Exit status when there are insufficient resources available to perform the operation (80). -
INTERNAL_ERROR
Exit status when an internal (programming) error has occurred (90). -
OUT_OF_MEMORY
Exit status when program runs out of memory (91). -
UNIT_TEST_FAIL
Exit status for a unit test fails (92). -
NO_LICENSE
Exit status when a valid license cannot be found (100). -
DISCLAIMER_NOT_ACKNOWLEDGED
Exit status when the clinical use disclaimer has not been acknowledged by the user (101). -
INVALID_JVM
Exit status when the java virtual machine used is not suitable for running this release of the software (102). -
NO_JAVA3D
Exit status when the java3d is not installed or not installed correctly (103). -
UNKNOWN_HOST
Exit status when there is an attempt to access an unknown host (110). -
DATABASE_ERROR
Exit status when there is an error accessing a database (120).
-
-
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
-
getStatus
public int getStatus()Returns the integer exit status code for thisExitStatus
.- Returns:
- the exit status code.
-