接口 ExitCodeExceptionMapper


  • public interface ExitCodeExceptionMapper
    Strategy interface that can be used to provide a mapping between exceptions and exit codes.
    从以下版本开始:
    1.3.2
    • 方法详细资料

      • getExitCode

        int getExitCode​(Throwable exception)
        Returns the exit code that should be returned from the application.
        参数:
        exception - the exception causing the application to exit
        返回:
        the exit code or 0.