public interface CanHandleErrors
Modifier and Type | Method and Description |
---|---|
default void |
addErrorHandler(java.util.function.Consumer<java.lang.Throwable> handler)
Register a new error handler.
|
java.util.List<java.util.function.Consumer<java.lang.Throwable>> |
getErrorHandlers()
Returns a list of all registered web socket error handlers.
|
default void |
removeErrorHandlers()
Removes existing error handlers.
|
java.util.List<java.util.function.Consumer<java.lang.Throwable>> getErrorHandlers()
default void addErrorHandler(java.util.function.Consumer<java.lang.Throwable> handler)
handler
- a callback function, which accepts the received exception instance as a parameterdefault void removeErrorHandlers()