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