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

@return The failed future with the  ValidationErrorException with the
error code and message.

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