We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.router.
Interface HasErrorParameter<T extends Exception>
-
Type Parameters:
T
- type Exception type handledAll Superinterfaces:
All Known Implementing Classes:
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface HasErrorParameter<T extends Exception> extends Serializable
Defines a view that handles the exceptions for the set Exception type T.
Since:
1.0
Author:
Vaadin Ltd
-
-
Method Summary
All Methods Modifier and Type Method Description int
setErrorParameter​(BeforeEnterEvent event, ErrorParameter<T> parameter)
Callback executed before rendering the exception view.
-
-
-
Method Detail
-
setErrorParameter
int setErrorParameter​(BeforeEnterEvent event, ErrorParameter<T> parameter)
Callback executed before rendering the exception view.
Note! returned int should be a valid
HttpStatusCode
codeParameters:
event
- the before navigation event for this requestparameter
- error parameter containing custom exception and caught exceptionReturns:
a valid
HttpStatusCode
code
-
-