|
Préférences
Moteurs de recherche
|
|||||||||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
java.util.logging
|
Field Summary | |
---|---|
static int |
CLOSE_FAILURE
CLOSE_FAILURE is used when a close of an output stream fails. |
static int |
FLUSH_FAILURE
FLUSH_FAILURE is used when a flush to an output stream fails. |
static int |
FORMAT_FAILURE
FORMAT_FAILURE is used when formatting fails for any reason. |
static int |
GENERIC_FAILURE
GENERIC_FAILURE is used for failure that don't fit into one of the other categories. |
static int |
OPEN_FAILURE
OPEN_FAILURE is used when an open of an output stream fails. |
static int |
WRITE_FAILURE
WRITE_FAILURE is used when a write to an output stream fails. |
Constructor Summary | |
---|---|
ErrorManager()
|
Method Summary | |
---|---|
void |
error(String msg,
Exception ex,
int code)
The error method is called when a Handler failure occurs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int GENERIC_FAILURE
public static final int WRITE_FAILURE
public static final int FLUSH_FAILURE
public static final int CLOSE_FAILURE
public static final int OPEN_FAILURE
public static final int FORMAT_FAILURE
Constructor Detail |
---|
public ErrorManager()
Method Detail |
---|
public void error(String msg, Exception ex, int code)
This method may be overriden in subclasses. The default behavior in this base class is that the first call is reported to System.err, and subsequent calls are ignored.
msg
- a descriptive string (may be null)ex
- an exception (may be null)code
- an error code defined in ErrorManager