public interface ErrorsContext extends Iterable<ConversionError>
Modifier and Type | Method and Description |
---|---|
default Optional<ConversionError> |
getLastError()
Obtain the last error.
|
default Iterator<ConversionError> |
iterator() |
default void |
reject(Exception exception)
Reject the version with the given exception.
|
default void |
reject(Object value,
Exception exception)
Reject the version with the given exception.
|
forEach, spliterator
default void reject(Exception exception)
exception
- The exceptiondefault void reject(Object value, Exception exception)
value
- The original valueexception
- The exceptiondefault Iterator<ConversionError> iterator()
iterator
in interface Iterable<ConversionError>
default Optional<ConversionError> getLastError()