Java 类org.springframework.boot.devtools.restart.FailureHandler.Outcome 实例源码

项目:contestparser    文件:Restarter.java   
/**
 * Start the application.
 * @param failureHandler a failure handler for application that won't start
 * @throws Exception in case of errors
 */
protected void start(FailureHandler failureHandler) throws Exception {
    do {
        Throwable error = doStart();
        if (error == null) {
            return;
        }
        if (failureHandler.handle(error) == Outcome.ABORT) {
            if (error instanceof Exception) {
                throw (Exception) error;
            }
            throw new Exception(error);
        }
    }
    while (true);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:Restarter.java   
/**
 * Start the application.
 * @param failureHandler a failure handler for application that won't start
 * @throws Exception in case of errors
 */
protected void start(FailureHandler failureHandler) throws Exception {
    do {
        Throwable error = doStart();
        if (error == null) {
            return;
        }
        if (failureHandler.handle(error) == Outcome.ABORT) {
            return;
        }
    }
    while (true);
}
项目:spring-boot-concourse    文件:Restarter.java   
/**
 * Start the application.
 * @param failureHandler a failure handler for application that won't start
 * @throws Exception in case of errors
 */
protected void start(FailureHandler failureHandler) throws Exception {
    do {
        Throwable error = doStart();
        if (error == null) {
            return;
        }
        if (failureHandler.handle(error) == Outcome.ABORT) {
            return;
        }
    }
    while (true);
}