public class ErrorReporter extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected static ErrorHandler | handler | 
| Constructor and Description | 
|---|
| ErrorReporter() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | errorAbort(String msg)Log an error message and abort processing. | 
| static void | errorAbort(String format,
          Object... args)Log an error message use  String.format(String, Object...)} and abort processing. | 
| static void | errorAbort(String msg,
          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(String msg)
msg - the error message to logpublic static void errorAbort(String format, 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 string