Interface ErrorsContext

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method 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.
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • reject

        default void reject​(java.lang.Exception exception)
        Reject the version with the given exception.
        Parameters:
        exception - The exception
      • reject

        default void reject​(java.lang.Object value,
                            java.lang.Exception exception)
        Reject the version with the given exception.
        Parameters:
        value - The original value
        exception - The exception
      • getLastError

        default java.util.Optional<ConversionError> getLastError()
        Obtain the last error.
        Returns:
        The error
      • hasErrors

        default boolean hasErrors()
        Returns:
        Check whether errors exist