Package io.micronaut.json.bind
Interface JsonBeanPropertyBinderExceptionHandler
-
@Internal public interface JsonBeanPropertyBinderExceptionHandlerException handler interface that converts json binding exceptions to more specificConversionErrorExceptions.- Since:
- 3.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<io.micronaut.core.convert.exceptions.ConversionErrorException>toConversionError(java.lang.Object object, java.lang.Exception e)Attempt to convert the given exception to aConversionErrorException.
-
-
-
Method Detail
-
toConversionError
java.util.Optional<io.micronaut.core.convert.exceptions.ConversionErrorException> toConversionError(@Nullable java.lang.Object object, @NonNull java.lang.Exception e)Attempt to convert the given exception to aConversionErrorException.- Parameters:
object- The object that was supposed to be updated, ornull.e- The exception that occurred during mapping.- Returns:
- The conversion error, or an empty value if default handling should be used.
-
-