Logger.error(e, "Can't start in PROD mode with errors");
}
if (e instanceof RuntimeException) {
throw (RuntimeException) e;
}
throw new UnexpectedException(e);
}
if (firstStart) {
Logger.info("Application '%s' is now started !", configuration.getProperty("application.name", ""));
firstStart = false;
}
// We made it
started = true;
startedAt = System.currentTimeMillis();
// Plugins
pluginCollection.afterApplicationStart();
} catch (YalpException e) {
started = false;
try {
Cache.stop();
} catch (Exception ignored) {
}
throw e;
} catch (Exception e) {
started = false;
try {
Cache.stop();
} catch (Exception ignored) {
}
throw new UnexpectedException(e);
}
}