/** * 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); }
/** * This method should be used for adding quick debug statements in code * while debugging. Calls to this method should never be committed to master. * * @param msg Message to debug. * @deprecated Calls to this method should never be committed to master. */ @Deprecated public static void debug(Object msg) { X.error(debugPrefix() + msg); }
@Override public void onSessionIdleTimeout(GridNioSession ses) { X.error("Session idle timeout. Closing."); } };
@Override public void onSessionWriteTimeout(GridNioSession ses) { X.error("Session write timeout. Closing."); }
/** {@inheritDoc} */ @Override public final void run() { try { body(); } catch (InterruptedException ignore) { interrupt(); } // Catch all. catch (Throwable e) { X.error("Failed to execute IGFS 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 IGFS 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());
X.error("Failed to output to a file", e);
X.error("Failed to output to a file", e);
X.error("Failed to output results to file.", e);
X.error("Failed to output results to file.", e);
X.error("Failed to output to a file", e);
/** * 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); }
/** * This method should be used for adding quick debug statements in code * while debugging. Calls to this method should never be committed to master. * * @param msg Message to debug. * @deprecated Calls to this method should never be committed to master. */ @Deprecated public static void debug(Object msg) { X.error(debugPrefix() + msg); }
/** {@inheritDoc} */ @Override public final void run() { try { body(); } catch (InterruptedException ignore) { interrupt(); } // Catch all. catch (Throwable e) { X.error("Failed to execute IGFS 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 IGFS 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());