public class WebExceptionHandler extends Object implements ExceptionHandler
| Constructor and Description |
|---|
WebExceptionHandler(String propertiesFile,
@NotNull ExceptionHandler fallBack) |
| Modifier and Type | Method and Description |
|---|---|
void |
on(@NotNull Class<?> clazz,
@Nullable String message,
@Nullable Throwable t)
A method to call when an exception occurs.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisEnabled, on, onpublic WebExceptionHandler(String propertiesFile, @NotNull @NotNull ExceptionHandler fallBack)
public void on(@NotNull
@NotNull Class<?> clazz,
@Nullable
@Nullable String message,
@Nullable
@Nullable Throwable t)
ExceptionHandleron in interface ExceptionHandlerclazz - the error is associated with, e.g. the one in which it was caught (non-null)message - any message associated with the error, or an empty Stringt - any Throwable caught, or null if there was no exception.Copyright © 2022. All rights reserved.