E - The exception type that is handledpublic abstract class ExceptionHandler<E extends java.lang.Exception>
extends java.lang.Object
| Constructor and Description |
|---|
ExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
static <E extends java.lang.Exception> |
defaultHandler() |
abstract void |
handle(java.lang.String path,
E exception)
Handles the given exception, e.g. by printing, logging and/or rethrowing it.
|
abstract void |
handle(java.lang.String path,
java.lang.RuntimeException runtimeException)
Handles the given runtimeException, e.g. by printing, logging and/or rethrowing it.
|
public static <E extends java.lang.Exception> ExceptionHandler<E> defaultHandler()
ExceptionHandler that merely rethrows the exceptions it receivespublic abstract void handle(java.lang.String path,
E exception)
throws E extends java.lang.Exception
path - Describes the resource being processedE extends java.lang.Exceptionpublic abstract void handle(java.lang.String path,
java.lang.RuntimeException runtimeException)
path - Describes the resource being processed