Constructor and Description |
---|
ExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
static <E extends Exception> |
defaultHandler() |
abstract void |
handle(String path,
E exception)
Handles the given exception, e.g. by printing, logging and/or rethrowing it.
|
abstract void |
handle(String path,
RuntimeException runtimeException)
Handles the given runtimeException, e.g. by printing, logging and/or rethrowing it.
|
public static <E extends Exception> ExceptionHandler<E> defaultHandler()
ExceptionHandler
that merely rethrows the exceptions it receivespublic abstract void handle(String path, E exception) throws E extends Exception
public abstract void handle(String path, RuntimeException runtimeException)
path
- Describes the resource being processedCopyright © 2018 Arno Unkrig. All rights reserved.