Package org.apache.hadoop.util
Class ExitUtil.ExitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.hadoop.util.ExitUtil.ExitException
- All Implemented Interfaces:
Serializable,ExitCodeProvider
- Direct Known Subclasses:
KDiag.KerberosDiagsFailure,ServiceLaunchException
- Enclosing class:
- ExitUtil
An exception raised when a call to
ExitUtil.terminate(int) was
called and system exits were blocked.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExitException(int status, String msg) ExitException(int status, String message, Throwable cause) ExitException(int status, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionintMethod to get the exit code.toString()String value does not include exception type, just exit code and message.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
status
public final int statusThe status code.
-
-
Constructor Details
-
ExitException
-
ExitException
-
ExitException
-
-
Method Details
-
getExitCode
public int getExitCode()Description copied from interface:ExitCodeProviderMethod to get the exit code.- Specified by:
getExitCodein interfaceExitCodeProvider- Returns:
- the exit code
-
toString
String value does not include exception type, just exit code and message.
-