Java Utililty Methods Error Print

List of utility methods to do Error Print

  1. HOME
  2. Java
  3. E
  4. Error Print

Description

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

Method

void printError(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);
...
void printError(Object obj, String message)
Utility for print an error message
System.err.println(obj.getClass().getName() + ": " + message);
void printError(String error)
print Error
System.err.println(error);
void printError(String message)
Prints an error to the console with the prefix
ERROR
printInfo("ERROR! " + message);
void printError(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);
void printError(String msg)
Prints an error message to stdout
System.out.println("Error! " + msg);
void printError(String msg, Exception exception, boolean quit)
Prints the specified error message to stderr.
printError(createErrorMessage(msg, exception, quit).toString(), quit);
void printError(String s)
print Error
if (ERROR)
 System.out.printf("[ERROR] [%05d] %s%n", timeSince(), s);
void printError(String s)
print Error
infoLog.append("[STDERR] " + s + '\n');
System.out.printf("[STDERR] %s\n", s);
void printErrorAndExit(String message)
print Error And Exit
printError(message);
System.exit(1);


AltStyle によって変換されたページ (->オリジナル) /