Package org.djutils.cli
Class ExitHelper.ExitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.SecurityException
org.djutils.cli.ExitHelper.ExitException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ExitHelper
public static class ExitHelper.ExitException extends SecurityException
Exception that will be thrown instead of the System.exit() call.
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description int
status
the exit code. -
Constructor Summary
Constructors Constructor Description ExitException(int status)
Instantiate the exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
status
public final int statusthe exit code.
-
-
Constructor Details
-
ExitException
public ExitException(int status)Instantiate the exception.- Parameters:
status
- the exit code
-