public class ExceptionHandler<T extends Exception>
Receives notification when an exception occurs and returns an object containing the HTTP status and message used to build the response.
| Constructor and Description |
|---|
ExceptionHandler(kotlin.reflect.KClass<T> exceptionType,
kotlin.jvm.functions.Function1<? super T,ws.osiris.core.ErrorInfo> handlerFn)
Receives notification when an exception occurs and returns an object containing the HTTP status
and message used to build the response.
|
| Modifier and Type | Method and Description |
|---|---|
ErrorInfo |
handle(java.lang.Exception exception) |
public ExceptionHandler(kotlin.reflect.KClass<T> exceptionType,
kotlin.jvm.functions.Function1<? super T,ws.osiris.core.ErrorInfo> handlerFn)
Receives notification when an exception occurs and returns an object containing the HTTP status and message used to build the response.
public ErrorInfo handle(java.lang.Exception exception)