public void ErrorIf(bool condition, AcErrorType type, params object[] args) { if (condition) { AddError(new AcError(this, type, args)); } else { RemoveError(type); } }