public class ErrorReporter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static ErrorHandler |
handler |
Constructor and Description |
---|
ErrorReporter() |
Modifier and Type | Method and Description |
---|---|
static void |
errorAbort(java.lang.String msg)
Log an error message and abort processing.
|
static void |
errorAbort(java.lang.String format,
java.lang.Object... args)
Log an error message use
String.format(String, Object...) } and abort processing. |
static void |
errorAbort(java.lang.String msg,
java.lang.Throwable cause) |
static void |
setHandler(ErrorHandler h)
Register a handler to customize error reporting.
|
protected static ErrorHandler handler
public static void setHandler(ErrorHandler h)
public static void errorAbort(java.lang.String msg)
msg
- the error message to logpublic static void errorAbort(java.lang.String format, java.lang.Object... args)
String.format(String, Object...)
} and abort processing. Call
this method instead of raising an exception.format
- a format stringargs
- arguments to the format stringpublic static void errorAbort(java.lang.String msg, java.lang.Throwable cause)