Class ConsoleOutput

java.lang.Object
org.rumbledb.cli.ConsoleOutput

public final class ConsoleOutput extends Object
Centralizes user-facing command-line output. Debug logging should be done through the logging framework, not through this class.
  • Method Details

    • out

      public static void out(String message)
      Prints user-facing text to standard output.
      Parameters:
      message - the text to print.
    • warn

      public static void warn(String message)
      Prints a user-facing warning to standard error.
      Parameters:
      message - the warning text to print.
    • error

      public static void error(String message)
      Prints a user-facing error to standard error.
      Parameters:
      message - the error text to print.
    • stackTrace

      public static void stackTrace(Throwable throwable)
      Prints a stack trace to standard error when the user explicitly requested debug error details.
      Parameters:
      throwable - the throwable whose stack trace should be printed.