Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9626

Add an interface for any exception to serve up an Exit code

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 2.4.0
    • None
    • util
    • None

    Description

      Various exception included exit codes, specifically Shell.ExitCodeException, ExitUtils.ExitException().

      If all exceptions that wanted to pass up an exit code to the main method implemented an interface with the method int getExitCode(), it'd be easier to extract exit codes from these methods in a unified way, so generating the desired exit codes on the application itself

      Attachments

        1. HADOOP-9626-001.patch
          4 kB
          Steve Loughran

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: