Package: org.apache.groovy.groovysh.util

## [Groovy] Class NoExitSecurityManager

- org.apache.groovy.groovysh.util.NoExitSecurityManager

-     class NoExitSecurityManager
      extends SecurityManager

  Custom security manager to System.exit (and related) from being used.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `NoExitSecurityManager(SecurityManager parent)`
    `NoExitSecurityManager()`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `void` | `checkExit(int code)` Always throws SecurityException.
    `` | `void` | `checkPermission(Permission perm)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class SecurityManager` | `checkAccept, checkAccess, checkAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkExit, checkLink, checkListen, checkMulticast, checkMulticast, checkPackageAccess, checkPackageDefinition, checkPermission, checkPermission, checkPrintJobAccess, checkPropertiesAccess, checkPropertyAccess, checkRead, checkRead, checkRead, checkSecurityAccess, checkSetFactory, checkWrite, checkWrite, equals, getClass, getSecurityContext, getThreadGroup, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### NoExitSecurityManager(SecurityManager parent)

    - #### NoExitSecurityManager()

  - ### Method Detail

    - #### @Override
      void checkExit(int code)

      Always throws SecurityException.

    - #### @Override
      void checkPermission(Permission perm)