Interface ExitCodeHandler

  • All Known Implementing Classes:
    DefaultExitCodeHandler

    public interface ExitCodeHandler
    ExitCodeHandler handles a request to exit with a specified exit code. The default implementation, DefaultExitCodeHandler calls System.exit(int), but other implementations could throw an un-caught Throwable or equivalent to terminate execution of the compiler. In no case should an implementation return normally from processExitCode(int).
    • Method Detail

      • processExitCode

        void processExitCode​(int exitCode)
        Process the request to exit with the specified exit code. Implementations of this method must never return normally.