/** * 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); }
/** * 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); }