model/src/main/java/eu/internetofus/common/model/ValidateContext.java
/**
   * Crate a failed future with the specified cause.
   *
   * @param field name of the failed field.
   * @param cause the validation fails.
   * @param <T>   type of expecting future.
   *
   * @return The failed future with the {@link ValidationErrorException} with the
   *         cause.
   *
   * @see #errorCode()
   */
Crate a failed future with the specified cause.
@param field name of the failed field.
@param cause the validation fails.
@param    type of expecting future.

@return The failed future with the  ValidationErrorException with the
cause.

@see #errorCode()
Crate a failed future with the specified cause . @param field name of the failed field . @param cause the validation fails . @param type of expecting future . @return The failed future with the ValidationErrorException with the cause . @see #errorCode ()
default <T> Future<T> failField(final String field, final Throwable cause) {
    final var code = this.fieldErrorCode(field);
    return Future.failedFuture(new ValidationErrorException(code, cause));
  }
default < T > Future < T > failField ( final String field , final Throwable cause ) { final var code = this . fieldErrorCode ( field ) ; return Future . failedFuture ( new ValidationErrorException ( code , cause ) ) ; }
Crate a failed future with the specified cause.
Crate a failed future with the specified cause .