public class GlobalExceptionHandlerLoggingImpl extends AbstractGlobalExceptionHandler
GlobalExceptionHandler interface. It
simply logs all errors.| Constructor and Description |
|---|
GlobalExceptionHandlerLoggingImpl()
The constructor.
|
| 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.
|
composeErrorscreateLogger, doInitialize, getLoggerdoInitialized, getInitializationState, initializepublic GlobalExceptionHandlerLoggingImpl()
public void handleErrors(Object context, Throwable... errors)
GlobalExceptionHandlercontext - 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–2016 mmm-Team. All rights reserved.