| 
 | ||||||||||
| 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_FAILUREThe constant indicating a closeof anOutputStreamfails. | 
| static int | FLUSH_FAILUREThe constant indicating a flushof anOutputStreamfails. | 
| static int | FORMAT_FAILUREThe constant indicating that formatting failed. | 
| static int | GENERIC_FAILUREThe constant indicating a failure not in the other categories. | 
| static int | OPEN_FAILUREThe constant indicating a openof anOutputStreamfails. | 
| static int | WRITE_FAILUREThe constant indicating a writeof anOutputStreamfails. | 
| Constructor Summary | |
|---|---|
| LoggingErrorHandler()Creates a LoggingErrorHandlerinstance. | |
| Method Summary | |
|---|---|
|  void | error(java.lang.String message,
      java.lang.Exception exception,
      int errorCode)This method is called when a Handlerfailure 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 | |||||||||