| Modifier and Type | Field and Description | 
|---|---|
static ExitStatus | 
ERROR
Generic "not OK" exit status with non-zero exit code and hangup=true. 
 | 
static ExitStatus | 
OK
Generic "OK" exit status with zero exit code and hangup=false. 
 | 
| Constructor and Description | 
|---|
ExitStatus(int code,
          String name)
Create a new  
ExitStatus instance. | 
ExitStatus(int code,
          String name,
          boolean hangup)
Create a new  
ExitStatus instance. | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getCode()
An exit code appropriate for use in  
System.exit(). | 
String | 
getName()
A name describing the outcome. 
 | 
ExitStatus | 
hangup()
Convert the existing code to a hangup. 
 | 
boolean | 
isHangup()
Flag to signal that the caller can (or should) hangup. 
 | 
String | 
toString()  | 
public static final ExitStatus OK
public static final ExitStatus ERROR
public ExitStatus(int code,
                  String name)
ExitStatus instance.code - the exit codename - the namepublic ExitStatus(int code,
                  String name,
                  boolean hangup)
ExitStatus instance.code - the exit codename - the namehangup - true if it is OK for the caller to hanguppublic int getCode()
System.exit().public String getName()
public boolean isHangup()
public ExitStatus hangup()