Exception Handling in Spring webflux
2 min readDec 5, 2021
--
In this tutorial we will learn How to handle Exception for functional endpoint in spring webflux.
To do this only we need to add only two classes in already created project. After that any exception that our handler function throws will be automatically translated to an Http status and a JSON error body will be get in response.
These two classes already available 1. DefaultErrorAttributes and 2. AbstractErrorWebExceptionHandler. So we can override these classes in our project according to our requirement.