• Brian Clozel's avatar
    Support error conventions in Spring WebFlux · 68db43cf
    Brian Clozel authored
    This commit adds support for Spring Boot error conventions with WebFlux.
    The Spring MVC support for that is based on an `Controller` that's
    mapped on a specific `"/error"` path and configured as an error page in
    the Servlet container. With WebFlux, this support leverages a
    `WebExceptionHandler`, which catches exceptions flowing through the
    reactive pipeline and handles them.
    
    The `DefaultErrorWebExceptionHandler` supports the following:
    * return a JSON error response to machine clients
    * return error HTML views (templates, static or default HTML view)
    
    One can customize the error information by contributing an
    `ErrorAttributes` bean to the application context.
    
    Spring Boot provides an `ErrorWebExceptionHandler` marker interface and a
    base implementation that provides high level constructs to handle
    errors, based on the Spring WebFlux functional flavor.
    The error handling logic can be completely changed by providing a custom
    `RouterFunction` there.
    
    Fixes gh-8625
    68db43cf
Name
Last commit
Last update
..
META-INF Loading commit data...
batch Loading commit data...
cache Loading commit data...
custom-templates Loading commit data...
db Loading commit data...
mustache-templates Loading commit data...
org/springframework/boot/autoconfigure Loading commit data...
session Loading commit data...
templates Loading commit data...
test Loading commit data...
welcome-page Loading commit data...
wsdl Loading commit data...
application-switch-messages.properties Loading commit data...
application.properties Loading commit data...
city.sql Loading commit data...
custom-schema-sample.ldif Loading commit data...
custom-schema.ldif Loading commit data...
data.sql Loading commit data...
early-init-test.xml Loading commit data...
ehcache.xml Loading commit data...
ehcache3.xml Loading commit data...
hazelcast.xml Loading commit data...
infinispan.xml Loading commit data...
ksLoc Loading commit data...
ksLocP Loading commit data...
logback-test.xml Loading commit data...
logging.properties Loading commit data...
schema.ldif Loading commit data...
schema.sql Loading commit data...
switch-messages.properties Loading commit data...
tsLoc Loading commit data...
tsLocP Loading commit data...