2 instantiations of ModelError
Microsoft.AspNetCore.Mvc.Abstractions (2)
ModelBinding\ModelErrorCollection.cs (2)
21Add(new ModelError(exception)); 32Add(new ModelError(errorMessage));
20 references to ModelError
Microsoft.AspNetCore.Mvc.Abstractions (13)
ModelBinding\Metadata\ModelBindingMessageProvider.cs (6)
42/// Error message the model binding system adds when <see cref="ModelError.Exception"/> is of type 50/// Error message the model binding system adds when <see cref="ModelError.Exception"/> is of type 58/// Error message the model binding system adds when <see cref="ModelError.Exception"/> is of type 66/// Error message the model binding system adds when <see cref="ModelError.Exception"/> is of type 75/// <see cref="ModelError"/>s have <c>null</c> <see cref="ModelError.ErrorMessage"/>s.
ModelBinding\ModelError.cs (5)
12/// Initializes a new instance of <see cref="ModelError"/> with the specified <paramref name="exception"/>. 21/// Initializes a new instance of <see cref="ModelError"/> with the specified <paramref name="exception"/> 33/// Initializes a new instance of <see cref="ModelError"/> with the specified <paramref name="errorMessage"/>. 42/// Gets the <see cref="System.Exception"/> associated with this <see cref="ModelError"/> instance. 47/// Gets the error message associated with this <see cref="ModelError"/> instance.
ModelBinding\ModelErrorCollection.cs (2)
9/// A collection of <see cref="ModelError"/> instances. 11public class ModelErrorCollection : Collection<ModelError>
Microsoft.AspNetCore.Mvc.Core (3)
ModelBinding\Binders\CollectionModelBinder.cs (1)
205/// Add a <see cref="ModelError" /> to <see cref="ModelBindingContext.ModelState" /> if
ModelBinding\UnsupportedContentTypeFilter.cs (1)
48var error = errors[i];
ValidationProblemDetails.cs (1)
65static string GetErrorMessage(ModelError error)
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
DefaultHtmlGenerator.cs (2)
743ModelError modelError = null; 852var modelError = modelState.Errors[i];
ValidationHelpers.cs (2)
11public static string GetModelErrorMessageOrDefault(ModelError modelError) 25ModelError modelError,