| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|
com.newstep.solid.management
|
Class DefaultErrorHandler
|
|
+--com.newstep.solid.management.DefaultErrorHandler
public class DefaultErrorHandler
provides a default error handling implementation that logs unhandled
exceptions, runtime exceptions, and errors.
NOTE: In the case of OutOfMemoryError the default handler first releases
a memory reservoir in order to provide memory to attempt to log the error
Links:
Kernel Association Association Link
memory reservoir used to block memory that may be released in order to allow
graceful handling of even in severe out of memory conditions
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
Generalization Generalization Link
provides a default error handling implementation that logs unhandled
exceptions, runtime exceptions, and errors.
NOTE: In the case of OutOfMemoryError the default handler first releases
a memory reservoir in order to provide memory to attempt to log the error
| Field Summary |
private final static String |
|
private static Logger |
|
|
|
| Constructor Summary |
public void |
|
| Method Summary |
public void |
|
private void |
|
public void |
|
private final static String className
Final.
Multiplicity:
1
Static.
private static Logger logger
logging members
Multiplicity:
1
Static.
memory reservoir used to block memory that may be released in order to allow
graceful handling of even in severe out of memory conditions
Multiplicity:
1
Static.
public void DefaultErrorHandler ()
default constructor
Stereotype:
create
public void doHandle (Throwable throwable)
logs the unhandled throwable
private void handleOutOfMemory (Throwable throwable)
handle the out of memory by logging and alarming. If handling fails due
to lack of memory, the handle method attempts to regain some memory from
its reserves and retry the handling
NOTE: must be careful that attempted handling does not enter
undefined state if OutOfMemory generated so it can be retried
Parameters:
throwable the unhandled Throwable to be handled
initializes the memory reservoir base on the specified configuration
Parameters:
config the DefaultErrorHandlerConfig to apply to the handler
| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|