Top Description Fields Constructors Methods
org.apache.tools.ant

public Class ExitException

extends SecurityException
Class Inheritance

Used to report exit status of classes which call System.exit().
See Also
org.apache.tools.ant.util.optional.NoExitSecurityManager, org.apache.tools.ant.types.Permissions

Field Summary

Modifier and TypeField and Description
private static final long
private int
status

Status code

Constructor Summary

AccessConstructor and Description
public
ExitException(int
the status code returned via System.exit()
status
)

Constructs an exit exception.

public
ExitException(String
the message to be displayed.
msg
,
int
the status code returned via System.exit()
status
)

Constructs an exit exception.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the status code returned by System.exit()
getStatus
()

The status code returned by System.exit()

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.SecurityException.serialVersionUID.

statusback to summary
private int status

Status code

Constructor Detail

ExitExceptionback to summary
public ExitException(int status)

Constructs an exit exception.

Parameters
status:int

the status code returned via System.exit()

ExitExceptionback to summary
public ExitException(String msg, int status)

Constructs an exit exception.

Parameters
msg:String

the message to be displayed.

status:int

the status code returned via System.exit()

Method Detail

getStatusback to summary
public int getStatus()

The status code returned by System.exit()

Returns:int

the status code returned by System.exit()