public interface WebErrorHandler
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(Throwable exception)
Determines whether this particular implementation can handle the given exception
or not.
|
HandledException |
handle(Throwable exception)
Handles the given exception and returns an instance of
HandledException. |
boolean canHandle(@Nullable
Throwable exception)
exception - The exception to examine.true if this implementation can handle the exception, false
otherwise.@NonNull HandledException handle(@Nullable Throwable exception)
HandledException.
This method should be called iff the call to canHandle(Throwable) for
the same exception returns true.exception - The exception to handle.Copyright © 2018. All rights reserved.