| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | error(final String
a descriptive string (may be null) msg, final Exception an exception (may be null) ex, final int an error code defined in ErrorManager code)Overrides java. The error method is called when a Handler failure occurs. |
| protected ExtLogRecord | Returns: the log record (notnull)the error message (possibly msg, Exception null)the error exception (possibly ex, int null)the error code code)Convert the given error to a log record which can be published to handler(s) or stored. |
| protected String | Returns: the corresponding name (notnull)the error code code)Get the name corresponding to the given error code. |
| ExtErrorManager | back to summary |
|---|---|
| public ExtErrorManager() | |
| error | back to summary |
|---|---|
| public void error(final String msg, final Exception ex, final int code) Overrides java. Doc from java. 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. | |
| errorToLogRecord | back to summary |
|---|---|
| protected ExtLogRecord errorToLogRecord(String msg, Exception ex, int code) Convert the given error to a log record which can be published to handler(s) or stored. Care should be taken not to publish the log record to a logger that writes to the same handler that produced the error.
| |
| nameForCode | back to summary |
|---|---|
| protected String nameForCode(int code) Get the name corresponding to the given error code.
| |