void init(final boolean daemonize, final Path pidFile, final boolean quiet, Environment initialEnv) throws NodeValidationException, UserException { try { Bootstrap.init(!daemonize, pidFile, quiet, initialEnv); } catch (BootstrapException | RuntimeException e) { // format exceptions to the console in a special way // to avoid 2MB stacktraces from guice, etc. throw new StartupException(e); } }
private void printStackTrace(Consumer<String> consumer) { Throwable originalCause = getCause(); Throwable cause = originalCause; if (cause instanceof CreationException) { cause = getFirstGuiceCause((CreationException)cause);
@Override public void printStackTrace(PrintWriter s) { printStackTrace(s::println); }
e.addSuppressed(uee); new StartupException(e).printStackTrace(ps); ps.flush(); try {
e.addSuppressed(uee); new StartupException(e).printStackTrace(ps); ps.flush(); try {
private void printStackTrace(Consumer<String> consumer) { Throwable originalCause = getCause(); Throwable cause = originalCause; if (cause instanceof CreationException) { cause = getFirstGuiceCause((CreationException)cause);
e.addSuppressed(uee); new StartupException(e).printStackTrace(ps); ps.flush(); try {
@Override public void printStackTrace(PrintStream s) { printStackTrace(s::println); }
void init(final boolean daemonize, final Path pidFile, final boolean quiet, Environment initialEnv) throws NodeValidationException, UserException { try { Bootstrap.init(!daemonize, pidFile, quiet, initialEnv); } catch (BootstrapException | RuntimeException e) { // format exceptions to the console in a special way // to avoid 2MB stacktraces from guice, etc. throw new StartupException(e); } }
private void printStackTrace(Consumer<String> consumer) { Throwable originalCause = getCause(); Throwable cause = originalCause; if (cause instanceof CreationException) { cause = getFirstGuiceCause((CreationException)cause);
e.addSuppressed(uee); new StartupException(e).printStackTrace(ps); ps.flush(); try {
@Override public void printStackTrace(PrintStream s) { printStackTrace(s::println); }
void init(final boolean daemonize, final Path pidFile, final boolean quiet, Environment initialEnv) throws NodeValidationException, UserException { try { Bootstrap.init(!daemonize, pidFile, quiet, initialEnv); } catch (BootstrapException | RuntimeException e) { // format exceptions to the console in a special way // to avoid 2MB stacktraces from guice, etc. throw new StartupException(e); } }
private void printStackTrace(Consumer<String> consumer) { Throwable originalCause = getCause(); Throwable cause = originalCause; if (cause instanceof CreationException) { cause = getFirstGuiceCause((CreationException)cause);
@Override public void printStackTrace(PrintStream s) { printStackTrace(s::println); }
void init(final boolean daemonize, final Path pidFile, final boolean quiet, Environment initialEnv) throws NodeValidationException, UserException { try { Bootstrap.init(!daemonize, pidFile, quiet, initialEnv); } catch (BootstrapException | RuntimeException e) { // format exceptions to the console in a special way // to avoid 2MB stacktraces from guice, etc. throw new StartupException(e); } }
@Override public void printStackTrace(PrintStream s) { printStackTrace(s::println); }
@Override public void printStackTrace(PrintWriter s) { printStackTrace(s::println); }
@Override public void printStackTrace(PrintWriter s) { printStackTrace(s::println); }
@Override public void printStackTrace(PrintWriter s) { printStackTrace(s::println); }