|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adfnmc.java.util.logging.ErrorManager
public class ErrorManager
An error reporting facility for Handler
implementations to record any
error that may happen during logging. Handlers
should report
errors to an ErrorManager
, instead of throwing exceptions,
which would interfere with the log issuer's execution.
Field Summary | |
---|---|
static int |
CLOSE_FAILURE
The error code indicating a failure when closing an output stream. |
static int |
FLUSH_FAILURE
The error code indicating a failure when flushing an output stream. |
static int |
FORMAT_FAILURE
The error code indicating a failure when formatting the error messages. |
static int |
GENERIC_FAILURE
The error code indicating a failure that does not fit in any of the specific types of failures that follow. |
static int |
OPEN_FAILURE
The error code indicating a failure when opening an output stream. |
static int |
WRITE_FAILURE
The error code indicating a failure when writing to an output stream. |
Constructor Summary | |
---|---|
ErrorManager()
Constructs an instance of ErrorManager . |
Method Summary | |
---|---|
void |
error(java.lang.String message,
java.lang.Exception exception,
int errorCode)
Reports an error using the given message, exception and error code. |
Methods inherited from class java.lang.Object |
---|
equals, 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()
ErrorManager
.
Method Detail |
---|
public void error(java.lang.String message, java.lang.Exception exception, int errorCode)
System.err
on the
first call and all subsequent calls are ignored. A subclass of this class
should override this method.
message
- The error message, which may be null
.exception
- The exception associated with the error, which may be
null
.errorCode
- The error code that identifies the type of error; see the
constant fields on this class.
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |