ExitCodeProvider (Apache Hadoop Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.util, interface: ExitCodeProvider

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

  Modifier and Type
  Method
  Description
  `int`
  `getExitCode()`
  Method to get the exit code.

- ## Method Details

  - ### getExitCode

    int getExitCode()
    Method to get the exit code.
    Returns:
      the exit code