Package org.apache.hadoop.util
Interface ExitCodeProvider
- All Known Implementing Classes:
ExitUtil.ExitException,ExitUtil.HaltException,KDiag.KerberosDiagsFailure,ServiceLaunchException,ServiceStateException
public interface ExitCodeProvider
Get the exit code of an exception.
Making it an interface makes
it possible to retrofit exit codes onto existing classes,
and add exit code providers under all parts of the Exception tree.
-
Method Summary
-
Method Details
-
getExitCode
int getExitCode()Method to get the exit code.- Returns:
- the exit code
-