Class Reporter

java.lang.Object
components.utilities.Reporter

public final class Reporter extends Object
Reporter utility class with methods to report various kinds of notifications.
  • Method Details

    • fatalErrorToConsole

      public static void fatalErrorToConsole(String msg)
      Prints the given error message to the console and terminates the application.
      Parameters:
      msg - the error message
      Ensures:
      [msg is printed to the console and the application terminates]
    • assertElseFatalError

      public static void assertElseFatalError(boolean b, String msg)
      If the given condition is false, prints the given error message to the console and terminates the application; otherwise it just returns.
      Parameters:
      b - the boolean condition
      msg - the error message
      Ensures:
      [if the condition is false, msg is printed to the console and
        the application terminates; otherwise it just returns]