public EntityError(string message, ValidationErrorTypes validationErrorType) { if (string.IsNullOrEmpty(message)) { throw new ArgumentNullException(nameof(message)); } _message = message; _validationErrorType = validationErrorType; }
/// コンストラクタ public ValidationError(ValidationErrorTypes type, string message) : this() { this.Type = type; this.Message = message; }
public void AddError(ValidationErrorTypes type, string message) { var error = new ValidationError(type, message); _validationErrors.Add(error); }
public ValidationError(ValidationErrorTypes type, string message) { this.type = type; this.message = message; }
public ValidationErrorMessage(string errorMessage, ValidationErrorTypes errorType) { ErrorMessage = errorMessage; ErrorType = errorType; }