4 instantiations of InputFormatterException
Microsoft.AspNetCore.Mvc.Core (1)
Formatters\SystemTextJsonInputFormatter.cs (1)
143
return new
InputFormatterException
(jsonException.Message, jsonException);
Microsoft.AspNetCore.Mvc.Formatters.Xml (3)
XmlDataContractSerializerInputFormatter.cs (1)
161
throw new
InputFormatterException
(Resources.ErrorDeserializingInputData, exception);
XmlSerializerInputFormatter.cs (2)
152
throw new
InputFormatterException
(Resources.ErrorDeserializingInputData, exception.InnerException);
157
throw new
InputFormatterException
(Resources.ErrorDeserializingInputData, exception.InnerException);
9 references to InputFormatterException
Microsoft.AspNetCore.Mvc.Abstractions (7)
Formatters\InputFormatterException.cs (3)
12
/// Initializes a new instance of <see cref="
InputFormatterException
"/>.
19
/// Initializes a new instance of <see cref="
InputFormatterException
"/> with the specified <paramref name="message"/>.
28
/// Initializes a new instance of <see cref="
InputFormatterException
"/> with the specified <paramref name="message"/> and
Formatters\InputFormatterExceptionPolicy.cs (2)
29
/// treats only <see cref="
InputFormatterException
"/> and its subclasses as model state errors. This means that
43
/// This value indicates that only <see cref="
InputFormatterException
"/> and subclasses will be treated
ModelBinding\ModelStateDictionary.cs (2)
212
if ((exception is
InputFormatterException
|| exception is ValueProviderException)
305
else if ((exception is
InputFormatterException
|| exception is ValueProviderException)
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\Binders\BodyModelBinder.cs (1)
183
catch (Exception exception) when (exception is
InputFormatterException
|| ShouldHandleException(formatter))
Properties\AssemblyInfo.cs (1)
8
[assembly: TypeForwardedTo(typeof(
InputFormatterException
))]