ErrorManager objects can be attached to Handlers to process any error that occur on a Handler during Logging.
More...
#include <src/main/decaf/util/logging/ErrorManager.h>
|
static const int | GENERIC_FAILURE |
| GENERIC_FAILURE is used for failure that don't fit into one of the other categories.
|
|
static const int | WRITE_FAILURE |
| WRITE_FAILURE is used when a write to an output stream fails.
|
|
static const int | FLUSH_FAILURE |
| FLUSH_FAILURE is used when a flush to an output stream fails.
|
|
static const int | CLOSE_FAILURE |
| CLOSE_FAILURE is used when a close of an output stream fails.
|
|
static const int | OPEN_FAILURE |
| OPEN_FAILURE is used when an open of an output stream fails.
|
|
static const int | FORMAT_FAILURE |
| FORMAT_FAILURE is used when formatting fails for any reason.
|
|
ErrorManager objects can be attached to Handlers to process any error that occur 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.
- Since
- 1.0
◆ ErrorManager()
decaf::util::logging::ErrorManager::ErrorManager |
( |
| ) |
|
◆ ~ErrorManager()
virtual decaf::util::logging::ErrorManager::~ErrorManager |
( |
| ) |
|
|
virtual |
◆ error()
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.
- Parameters
-
message | - a descriptive string (may be empty) |
ex | - an exception (may be NULL) |
code | - an error code defined in ErrorManager |
◆ CLOSE_FAILURE
const int decaf::util::logging::ErrorManager::CLOSE_FAILURE |
|
static |
CLOSE_FAILURE is used when a close of an output stream fails.
◆ FLUSH_FAILURE
const int decaf::util::logging::ErrorManager::FLUSH_FAILURE |
|
static |
FLUSH_FAILURE is used when a flush to an output stream fails.
◆ FORMAT_FAILURE
const int decaf::util::logging::ErrorManager::FORMAT_FAILURE |
|
static |
FORMAT_FAILURE is used when formatting fails for any reason.
◆ GENERIC_FAILURE
const int decaf::util::logging::ErrorManager::GENERIC_FAILURE |
|
static |
GENERIC_FAILURE is used for failure that don't fit into one of the other categories.
◆ OPEN_FAILURE
const int decaf::util::logging::ErrorManager::OPEN_FAILURE |
|
static |
OPEN_FAILURE is used when an open of an output stream fails.
◆ WRITE_FAILURE
const int decaf::util::logging::ErrorManager::WRITE_FAILURE |
|
static |
WRITE_FAILURE is used when a write to an output stream fails.
The documentation for this class was generated from the following file: