@ComponentSpecification public interface GlobalExceptionHandler
handle errors that
can not be handled in a specific way by generic components. It allows to write portable code that can
delegate error handling to this component that allows to exchange its implementation and therefore the
handling strategy.| Modifier and Type | Method and Description |
|---|---|
void |
handleErrors(Object context,
Throwable... errors)
This method handles one or multiple errors that occurred in a generic component that can not handle them
in a specific way.
|
void handleErrors(Object context, Throwable... errors)
context - is an Object with information about the context when the error occurred. Its
string representation should be human readable and give additional hints
to track down the error. E.g. the source or parameters of an operation where the error occurred.
This parameter may also be null if no context information is available.errors - are the errors that have been catched. Has to contain at least one Throwable.Copyright © 2001–2015 mmm-Team. All rights reserved.