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.
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.
Static Constant.
CLOSE_FAILURE is used when a close of an output stream fails.
type: int
Static Constant. CLOSE_FAILURE is used when a close of an output stream fails. type: int
Static Constant.
FLUSH_FAILURE is used when a flush to an output stream fails.
type: int
Static Constant. FLUSH_FAILURE is used when a flush to an output stream fails. type: int
Static Constant.
FORMAT_FAILURE is used when formatting fails for any reason.
type: int
Static Constant. FORMAT_FAILURE is used when formatting fails for any reason. type: int
Static Constant.
GENERIC_FAILURE is used for failure that don't fit into one of the other categories.
type: int
Static Constant. GENERIC_FAILURE is used for failure that don't fit into one of the other categories. type: int
Static Constant.
OPEN_FAILURE is used when an open of an output stream fails.
type: int
Static Constant. OPEN_FAILURE is used when an open of an output stream fails. type: int
Static Constant.
WRITE_FAILURE is used when a write to an output stream fails.
type: int
Static Constant. WRITE_FAILURE is used when a write to an output stream fails. type: int
(error this msg ex code)
The 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.
msg - a descriptive string (may be null) - java.lang.String
ex - an exception (may be null) - java.lang.Exception
code - an error code defined in ErrorManager - int
The 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. msg - a descriptive string (may be null) - `java.lang.String` ex - an exception (may be null) - `java.lang.Exception` code - an error code defined in ErrorManager - `int`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close