org.springframework.boot

Interface ExitCodeExceptionMapper



  • public interface ExitCodeExceptionMapper
    Strategy interface that can be used to provide a mapping between exceptions and exit codes.
    Since:
    1.3.2
    Author:
    Phillip Webb
    • Method Detail

      • getExitCode

        int getExitCode(Throwable exception)
        Returns the exit code that should be returned from the application.
        Parameters:
        exception - the exception causing the application to exit
        Returns:
        the exit code or 0.

Copyright © 2019 Pivotal Software, Inc.. All rights reserved.