blob: bb546605b8219180382b8142a8e925ab8b091a30 (
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.Http.ModelBinding
{
[Serializable]
public class ModelErrorCollection : Collection<ModelError>
{
public void Add(Exception exception)
{
Add(new ModelError(exception));
}
public void Add(string errorMessage)
{
Add(new ModelError(errorMessage));
}
}
}
|