protected DerivationError(IValidation validation, DerivationRelation[] relations, string errorMessage, object[] errorMessageParameters) { this.Validation = validation; this.Relations = relations; try { if (errorMessageParameters != null && errorMessageParameters.Length > 0) { this.message = string.Format(errorMessage, errorMessageParameters); } else { this.message = string.Format(errorMessage, new object[] { DerivationRelation.ToString(relations) }); } } catch { this.message = this.GetType() + ": " + DerivationRelation.ToString(this.Relations); } }
protected DerivationError(IValidation validation, DerivationRelation[] relations, string errorMessage) : this(validation, relations, errorMessage, new object[] { DerivationRelation.ToString(relations) }) { }