Package org.apache.hadoop.util
Class ExitUtil.HaltException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.hadoop.util.ExitUtil.HaltException
- All Implemented Interfaces:
Serializable,ExitCodeProvider
- Enclosing class:
- ExitUtil
An exception raised when a call to
ExitUtil.terminate(int) was
called and system halts were blocked.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHaltException(int status, String msg) HaltException(int status, String message, Throwable cause) HaltException(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 status
-
-
Constructor Details
-
HaltException
-
HaltException
-
HaltException
-
-
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.
-