public abstract class ErrorMode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ErrorMode |
FAIL
Messages are thrown as TableFormatExceptions,
probably causing read failure.
|
static ErrorMode |
IGNORE
Messages are ignored.
|
static ErrorMode[] |
OPTIONS
Known values.
|
static ErrorMode |
WARN
Messages are written as WARNINGs through the logging system.
|
Modifier | Constructor and Description |
---|---|
protected |
ErrorMode(java.lang.String name,
boolean isReport)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isReport()
Returns true if text reports submitted may ever be used for any
purpose.
|
abstract void |
report(java.lang.String msg)
Consumes a report string in a way appropriate for this mode.
|
java.lang.String |
toString()
Returns this option's name.
|
public static final ErrorMode IGNORE
public static final ErrorMode WARN
public static final ErrorMode FAIL
public static final ErrorMode[] OPTIONS
protected ErrorMode(java.lang.String name, boolean isReport)
name
- mode nameisReport
- true if text reports are ever used for anythingpublic boolean isReport()
public java.lang.String toString()
toString
in class java.lang.Object
public abstract void report(java.lang.String msg) throws java.io.IOException
msg
- message to reportjava.io.IOException