SecurityManager.checkExit

SecurityManager.checkExit

Class Overview | Class Members | This Package | All Packages

Syntax
public void checkExit( int status )
Parameters
status
the exit status.
Description
Throws a SecurityException if the calling thread is not allowed to cause the Java Virtual Machine to halt with the specified status code.

This method is invoked for the current security manager by the exit method of class Runtime. A status of 0 indicates success; other values indicate various errors.

The checkExit method for class SecurityManager always throws a SecurityException.

Exceptions
SecurityException if the caller does not have permission to halt the Java Virtual Machine with the specified status.
See Also
exit, getSecurityManager