| Package | Description |
|---|---|
| io.engineblock.activityapi.errorhandling |
| Modifier and Type | Class and Description |
|---|---|
class |
HashedErrorHandler<T extends Throwable,R>
Allow error handlers to be registered for any exception type, with an explicit handler
that will be called if no specific other handler is matched.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends Throwable,R> |
CycleErrorHandlers.log(R result) |
static <T extends Throwable,R> |
CycleErrorHandlers.rethrow(String prefix) |
static <T extends Throwable,R> |
CycleErrorHandlers.store(List<CycleErrorHandler.Triple> list,
R result) |
| Modifier and Type | Method and Description |
|---|---|
Map<Class<? extends T>,CycleErrorHandler<T,R>> |
HashedErrorHandler.getHandlers()
Return the current list of active handler assignments.
|
| Modifier and Type | Method and Description |
|---|---|
HashedErrorHandler<T,R> |
HashedErrorHandler.setDefaultHandler(CycleErrorHandler<T,R> errorHandler)
Set the default handler that gets called on any exceptions that do not match a class
or super-class specific handler.
|
void |
HashedErrorHandler.setHandlerForClasses(CycleErrorHandler<T,R> errorHandler,
Class<? extends T>... errorClasses)
Set the error handler for the specified class, and any subclasses of it.
|
void |
HashedErrorHandler.setHandlerForGroup(String groupName,
CycleErrorHandler<T,R> errorHandler)
Set the error handler for a named group of exception classes.
|
void |
HashedErrorHandler.setHandlerForPattern(String pattern,
CycleErrorHandler<T,R> errorHandler)
Find the matching classes from the recognized classes, and then
set the handler for all of them.
|
Copyright © 2017. All rights reserved.