|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.connectivity.oda.util.logging.LoggingErrorHandler
public class LoggingErrorHandler
LoggingErrorHandler can be associated with
Handlers to process any exceptions that occur
during logging. This will alleviate the log caller from
having to handle logging errors.
| Field Summary | |
|---|---|
static int |
CLOSE_FAILURE
The constant indicating a close of an
OutputStream fails. |
static int |
FLUSH_FAILURE
The constant indicating a flush of an
OutputStream fails. |
static int |
FORMAT_FAILURE
The constant indicating that formatting failed. |
static int |
GENERIC_FAILURE
The constant indicating a failure not in the other categories. |
static int |
OPEN_FAILURE
The constant indicating a open of an
OutputStream fails. |
static int |
WRITE_FAILURE
The constant indicating a write of an
OutputStream fails. |
| Constructor Summary | |
|---|---|
LoggingErrorHandler()
Creates a LoggingErrorHandler instance. |
|
| Method Summary | |
|---|---|
void |
error(java.lang.String message,
java.lang.Exception exception,
int errorCode)
This method is called when a Handler failure occurs. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int CLOSE_FAILURE
close of an
OutputStream fails.
public static int FLUSH_FAILURE
flush of an
OutputStream fails.
public static int FORMAT_FAILURE
public static int GENERIC_FAILURE
public static int OPEN_FAILURE
open of an
OutputStream fails.
public static int WRITE_FAILURE
write of an
OutputStream fails.
| Constructor Detail |
|---|
public LoggingErrorHandler()
LoggingErrorHandler instance.
| Method Detail |
|---|
public void error(java.lang.String message,
java.lang.Exception exception,
int errorCode)
Handler failure occurs.
It outputs the failure to System.err.
message - the error message.exception - the Exception that caused the
Handler to fail.errorCode - the error code constant.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||