@FunctionalInterface public interface ExceptionHandlerFunction
ExceptionHandler| Modifier and Type | Method and Description |
|---|---|
static <T> T |
fallthrough()
Throws a
FallthroughException in order to try to handle the Throwable by the next
handler. |
HttpResponse |
handleException(ServiceRequestContext ctx,
HttpRequest req,
Throwable cause)
Returns an
HttpResponse which would be sent back to the client who sent the req. |
HttpResponse handleException(ServiceRequestContext ctx, HttpRequest req, Throwable cause)
HttpResponse which would be sent back to the client who sent the req.
Calls fallthrough() or throws a FallthroughException if
this handler cannot handle the cause.static <T> T fallthrough()
FallthroughException in order to try to handle the Throwable by the next
handler.Copyright © 2020 LeanCloud. All rights reserved.