model/src/main/java/eu/internetofus/common/model/ValidateContext.java
/**
   * Crate a failed future with the specified error message.
   *
   * @param code    of the error.
   * @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 code    of the error.
@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 code of the error . @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> fail(final String code, final String message) {
    return Future.failedFuture(new ValidationErrorException(code, message));
  }
default < T > Future < T > fail ( final String code , final String message ) { return Future . failedFuture ( new ValidationErrorException ( code , message ) ) ; }
Crate a failed future with the specified error message.
Crate a failed future with the specified error message .