Package components.utilities
Class Reporter
java.lang.Object
components.utilities.Reporter
Reporter utility class with methods to report various kinds of
notifications.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertElseFatalError(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.static voidPrints the given error message to the console and terminates the application.
-
Method Details
-
fatalErrorToConsole
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
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 conditionmsg- the error message- Ensures:
[if the condition is false, msg is printed to the console and the application terminates; otherwise it just returns]
-