Package io.micronaut.core.convert
Interface ErrorsContext
- All Superinterfaces:
- Iterable<ConversionError>
- All Known Subinterfaces:
- ArgumentConversionContext<T>,- ConversionContext,- ImmutableArgumentConversionContext<T>
Interface for reporting conversion errors.
- Since:
- 1.0
- Author:
- Graeme Rocher
- 
Method SummaryModifier and TypeMethodDescriptiondefault Optional<ConversionError>Obtain the last error.default booleandefault Iterator<ConversionError>iterator()default voidReject the version with the given exception.default voidReject the version with the given exception.Methods inherited from interface java.lang.IterableforEach, spliterator
- 
Method Details- 
rejectReject the version with the given exception.- Parameters:
- exception- The exception
 
- 
rejectReject the version with the given exception.- Parameters:
- value- The original value
- exception- The exception
 
- 
iterator- Specified by:
- iteratorin interface- Iterable<ConversionError>
 
- 
getLastErrorObtain the last error.- Returns:
- The error
 
- 
hasErrorsdefault boolean hasErrors()- Returns:
- Check whether errors exist
 
 
-