public class NullErrorHandler extends Object implements ErrorHandler
Constructor and Description |
---|
NullErrorHandler()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
handleError(Class<?> context,
Throwable e,
String description)
Handles an error.
|
public NullErrorHandler()
public void handleError(Class<?> context, Throwable e, String description)
ErrorHandler
Handles an error. This method is called if the library code detects an
exception that it cannot handle internally or detects another abnormal
situation. At least one of e
and description
is
guaranteed not to be null
.
This method should not throw an exception, but if it does, this exception will simply be ignored.
handleError
in interface ErrorHandler
context
- the class that called the error handler. This information can
be used to determine in which component an exception occurred
if the same exception handler is registered for various
components.e
- exception that was encountered by library code and could not
be handled internally or null
if no exception is
available.description
- some additional information about the context in which the
error occurred or null
if no such information is
available.Copyright © 2014–2017 aquenos GmbH. All rights reserved.