/** * Alias for {@code System.err.println}. * * @param s1 First string to print. * @param rest Optional list of objects to print as well. */ public static void printerrln(@Nullable String s1, @Nullable Object... rest) { error(s1, rest); }
/** {@inheritDoc} */ @Override public final void run() { try { body(); } catch (InterruptedException ignore) { interrupt(); } // Catch all. catch (Throwable e) { X.error("Failed to execute GGFS ad-hoc thread: " + e.getMessage()); e.printStackTrace(); } finally { try { cleanup(); } // Catch all. catch (Throwable e) { X.error("Failed to clean up GGFS ad-hoc thread: " + e.getMessage()); e.printStackTrace(); } } }
/** {@inheritDoc} */ @Override public final void run() { try { body(); } catch (InterruptedException ignore) { interrupt(); } // Catch all. catch (Throwable e) { X.error("Failed to execute GGFS ad-hoc thread: " + e.getMessage()); e.printStackTrace(); if (e instanceof Error) throw e; } finally { try { cleanup(); } // Catch all. catch (Throwable e) { X.error("Failed to clean up GGFS ad-hoc thread: " + e.getMessage()); e.printStackTrace(); if (e instanceof Error) throw e; } } }
X.error("\nInvalid selection: " + line);
X.error("Start was interrupted (exiting): " + e.getMessage());