/** * Reports an error against an <code>IValidatable</code> instance using the given * <code>Map</code> for variable interpolations and message resource key provided by * {@link #resourceKey()}. * * @param validatable * the <code>IValidatable</code> instance being validated * @param vars * <code>Map</code> of variables for variable interpolation */ public void error(final IValidatable<T> validatable, final Map<String, Object> vars) { if (vars == null) { throw new IllegalArgumentException("Argument [[vars]] cannot be null"); } error(validatable, resourceKey(), vars); }
/** * Reports an error against an <code>IValidatable</code> instance using the given * <code>Map</code> for variable interpolations and message resource key provided by * {@link #resourceKey()}. * * @param validatable * the <code>IValidatable</code> instance being validated * @param vars * <code>Map</code> of variables for variable interpolation */ public void error(final IValidatable validatable, final Map vars) { if (vars == null) { throw new IllegalArgumentException("Argument [[vars]] cannot be null"); } error(validatable, resourceKey(), vars); }
/** * Reports an error against an <code>IValidatable</code> instance using the <code>Map</code> * returned by {@link #variablesMap(IValidatable)} for variable interpolations and the message * resource key returned by {@link #resourceKey()}. * * @param validatable * the <code>IValidatable</code> instance being validated * */ public void error(final IValidatable validatable) { error(validatable, resourceKey(), variablesMap(validatable)); }
/** * Reports an error against an <code>IValidatable</code> instance using the <code>Map</code> * returned by {@link #variablesMap(IValidatable)} for variable interpolations and the message * resource key returned by {@link #resourceKey()}. * * @param validatable * the <code>IValidatable</code> instance being validated * */ public void error(final IValidatable<T> validatable) { error(validatable, resourceKey(), variablesMap(validatable)); }