Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Missing.Validation.ValidationError"/> class.
 /// </summary>
 /// <param name="propertyPath">
 /// The path of the field that contains an error
 /// </param>
 /// <param name="messageFormat">
 /// Format of descriptive message
 /// </param>
 /// <param name="messageArgs">
 /// Arguments for descriptive message format
 /// </param>
 public ValidationError(PropertyPath propertyPath, string messageFormat, params object[] messageArgs)
     : this(propertyPath.AsString(), String.Format(messageFormat, messageArgs))
 {
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Missing.Validation.ValidationError"/> class.
 /// </summary>
 /// <param name="propertyPath">
 /// The path of the field that contains an error
 /// </param>
 /// <param name="message">
 /// A descriptive message of what the error is
 /// </param>
 public ValidationError(PropertyPath propertyPath, string message)
     : this(propertyPath.AsString(), message)
 {
 }