public static class ExitUtil.ExitException extends RuntimeException implements ExitCodeProvider
ExitUtil.terminate(int)
was
called and system exits were blocked.Modifier and Type | Field and Description |
---|---|
int |
status
The status code.
|
Constructor and Description |
---|
ExitException(int status,
String msg) |
ExitException(int status,
String message,
Throwable cause) |
ExitException(int status,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
int |
getExitCode()
Method to get the exit code.
|
String |
toString()
String value does not include exception type, just exit code and message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public ExitException(int status, String msg)
public ExitException(int status, Throwable cause)
public int getExitCode()
ExitCodeProvider
getExitCode
in interface ExitCodeProvider
Copyright © 2022 Apache Software Foundation. All rights reserved.