Exception Converter
Last updated
Last updated
The ExceptionConverter
class allows you to map a specific Exception
to a particular object. While a single ExceptionConverter
may not be very useful on its own, you can use a group of exception converters together in an to run a task and automatically convert any exceptions that are thrown into the appropriate Failure
object.
To create an Exception Converter, create a class that extends the ExceptionConverter
class: