Java Utililty Methods Error Print

List of utility methods to do Error Print

Description

The list of methods to do Error Print are organized into topic(s).

Method

voidprintError(Class c, String m, Exception e)
print Error
if (c != null) {
    System.err.println("<" + c.getCanonicalName() + "> Error: " + m);
    if (e != null) {
        System.err.print("<" + c.getCanonicalName() + "> ...caused by: ");
        e.printStackTrace();
} else {
    System.err.println("Error: " + m);
...
voidprintError(Object obj, String message)
Utility for print an error message
System.err.println(obj.getClass().getName() + ": " + message);
voidprintError(String error)
print Error
System.err.println(error);
voidprintError(String message)
Prints an error to the console with the prefix
ERROR
printInfo("ERROR! " + message);
voidprintError(String message, Exception e, boolean pst)
print Error
if (ERROR_ENABLED) {
    if (e != null && e.getMessage() != null) {
        message = message + " : " + e.getMessage();
    System.err.println("[ERROR] " + message);
    if (e != null && pst) {
        e.printStackTrace(System.err);
voidprintError(String msg)
Prints an error message to stdout
System.out.println("Error! " + msg);
voidprintError(String msg, Exception exception, boolean quit)
Prints the specified error message to stderr.
printError(createErrorMessage(msg, exception, quit).toString(), quit);
voidprintError(String s)
print Error
if (ERROR)
    System.out.printf("[ERROR] [%05d] %s%n", timeSince(), s);
voidprintError(String s)
print Error
infoLog.append("[STDERR] " + s + '\n');
System.out.printf("[STDERR] %s\n", s);
voidprintErrorAndExit(String message)
print Error And Exit
printError(message);
System.exit(1);