blob: 124de193d09d9e97a211c6f48e9dd14695c87e27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System.Collections.ObjectModel;
namespace System.Web.Mvc
{
[Serializable]
public class ModelErrorCollection : Collection<ModelError>
{
public void Add(Exception exception)
{
Add(new ModelError(exception));
}
public void Add(string errorMessage)
{
Add(new ModelError(errorMessage));
}
}
}
|