java.lang.Object
java.util.logging.ErrorManager
ErrorManager objects can be attached to Handlers to process
 any error that occurs on a Handler during Logging.
 
When processing logging output, if a Handler encounters problems then rather than throwing an Exception back to the issuer of the logging call (who is unlikely to be interested) the Handler should call its associated ErrorManager.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intCLOSE_FAILURE is used when a close of an output stream fails.static final intFLUSH_FAILURE is used when a flush to an output stream fails.static final intFORMAT_FAILURE is used when formatting fails for any reason.static final intGENERIC_FAILURE is used for failure that don't fit into one of the other categories.static final intOPEN_FAILURE is used when an open of an output stream fails.static final intWRITE_FAILURE is used when a write to an output stream fails.
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
GENERIC_FAILUREpublic static final int GENERIC_FAILUREGENERIC_FAILURE is used for failure that don't fit into one of the other categories.- See Also:
 
- 
WRITE_FAILUREpublic static final int WRITE_FAILUREWRITE_FAILURE is used when a write to an output stream fails.- See Also:
 
- 
FLUSH_FAILUREpublic static final int FLUSH_FAILUREFLUSH_FAILURE is used when a flush to an output stream fails.- See Also:
 
- 
CLOSE_FAILUREpublic static final int CLOSE_FAILURECLOSE_FAILURE is used when a close of an output stream fails.- See Also:
 
- 
OPEN_FAILUREpublic static final int OPEN_FAILUREOPEN_FAILURE is used when an open of an output stream fails.- See Also:
 
- 
FORMAT_FAILUREpublic static final int FORMAT_FAILUREFORMAT_FAILURE is used when formatting fails for any reason.- See Also:
 
 
- 
- 
Constructor Details- 
ErrorManagerpublic ErrorManager()Create anErrorManager.
 
- 
- 
Method Details- 
errorThe error method is called when a Handler failure occurs.This method may be overridden in subclasses. The default behavior in this base class is that the first call is reported to System.err, and subsequent calls are ignored. - Parameters:
- msg- a descriptive string (may be null)
- ex- an exception (may be null)
- code- an error code defined in ErrorManager
 
 
-