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(@NotNull
kotlin.reflect.KClass<T> exceptionType,
@NotNull
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.
@Nullable public ErrorInfo handle(@NotNull java.lang.Exception exception)