33 references to FormatException
Microsoft.AspNetCore.Identity.FunctionalTests (1)
src\Identity\Extensions.Core\src\Base32.cs (1)
93throw new FormatException();
Microsoft.AspNetCore.Mvc.Abstractions.Test (8)
ModelBinding\ModelStateDictionaryTest.cs (8)
983dictionary.TryAddModelError("key", new FormatException(), metadata); 1007dictionary.TryAddModelError("key", new FormatException(), metadata); 1035dictionary.TryAddModelError("key", new FormatException(), metadata); 1061dictionary.TryAddModelError("key", new FormatException(), metadata); 1097dictionary.TryAddModelError("key", new FormatException(), metadata); 1122dictionary.TryAddModelError("key", new FormatException(), metadata); 1151dictionary.TryAddModelError("key", new FormatException(), metadata); 1178dictionary.TryAddModelError("key", new FormatException(), metadata);
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Binders\TryParseModelBinder.cs (1)
136Expression.Call(AddModelErrorMethod, BindingContextExpression, Expression.Constant(new FormatException()))),
Microsoft.Build.Framework (1)
BinaryReaderExtensions.cs (1)
46throw new FormatException();
Microsoft.Build.Tasks.Core (1)
ManifestUtil\ApplicationManifest.cs (1)
310throw new FormatException();
Microsoft.Extensions.Identity.Core (1)
Base32.cs (1)
93throw new FormatException();
Microsoft.Maui.Controls (1)
GridLengthTypeConverter.cs (1)
35 throw new FormatException();
Microsoft.ML.Core (2)
Utilities\Contracts.cs (2)
370=> Process(new FormatException()); 372=> Process(new FormatException(), ctx);
Microsoft.ML.CpuMath (2)
src\Microsoft.ML.Core\Utilities\Contracts.cs (2)
370=> Process(new FormatException()); 372=> Process(new FormatException(), ctx);
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\Utils.LateBinder.vb (2)
290Throw New FormatException 328Throw New FormatException
MSBuildTaskHost (1)
BinaryReaderExtensions.cs (1)
46throw new FormatException();
System.Net.Primitives (1)
System\Net\CookieException.cs (1)
13public CookieException() : base()
System.Private.CoreLib (1)
src\System\Reflection\Emit\DynamicILGenerator.cs (1)
709throw new FormatException();
System.Private.Uri (1)
System\UriFormatException.cs (1)
16public UriFormatException() : base()
System.Security.Cryptography (1)
System\Security\Cryptography\Base64Transforms.cs (1)
390public static void ThrowBase64FormatException() => throw new FormatException();
System.Text.Json (5)
System\Text\Json\Document\JsonElement.cs (4)
480throw new FormatException(); 530throw new FormatException(); 577throw new FormatException(); 629throw new FormatException();
System\Text\Json\ThrowHelper.cs (1)
654throw new FormatException { Source = ExceptionSourceValueToRethrowAsJsonException };
UIAutomationTypes (2)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (2)
2112throw new FormatException(/*SR.GetString(SR.CannotConvertIntToFloat)*/); 2119throw new FormatException(/*SR.GetString(SR.CannotConvertDoubleToDate)*/);
xunit.console (1)
common\Json.cs (1)
761throw new FormatException();