40 references to FormatException
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
421throw new FormatException(string.Format(
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
src\Grpc\JsonTranscoding\src\Shared\X509CertificateHelpers.cs (1)
113throw new FormatException(string.Format(
Microsoft.AspNetCore.Rewrite (3)
ApacheModRewrite\FileParser.cs (2)
55throw new FormatException(Resources.FormatError_ModRewriteGeneralParseError(lineNum), formatException); 81throw new FormatException(Resources.FormatError_ModRewriteGeneralParseError(lineNum), formatException);
IISUrlRewrite\InvalidUrlRewriteFormatException.cs (1)
20: base(FormatMessage(element, message), innerException)
Microsoft.Extensions.Configuration.Json (1)
JsonConfigurationProvider.cs (1)
34throw new FormatException(SR.Error_JSONParseError, e);
Microsoft.ML.Core (4)
Utilities\Contracts.cs (4)
382=> Process(new FormatException(msg, inner)); 384=> Process(new FormatException(msg, inner), ctx); 386=> Process(new FormatException(GetMsg(msg, args), inner)); 388=> Process(new FormatException(GetMsg(msg, args), inner), ctx);
Microsoft.ML.CpuMath (4)
src\Microsoft.ML.Core\Utilities\Contracts.cs (4)
382=> Process(new FormatException(msg, inner)); 384=> Process(new FormatException(msg, inner), ctx); 386=> Process(new FormatException(GetMsg(msg, args), inner)); 388=> Process(new FormatException(GetMsg(msg, args), inner), ctx);
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationCore\System\Windows\Media\ParsersCommon.cs (1)
434throw new System.FormatException(SR.Format(SR.Parser_UnexpectedToken, _pathString, start), except);
PresentationCore (2)
System\Windows\DurationConverter.cs (1)
80throw new FormatException($"{valueSpan} is not a valid value for {nameof(TimeSpan)}.", e);
System\Windows\Media\ParsersCommon.cs (1)
434throw new System.FormatException(SR.Format(SR.Parser_UnexpectedToken, _pathString, start), except);
ReachFramework (2)
PrintConfig\PrtCap_Public.cs (1)
457return new FormatException(String.Format(CultureInfo.CurrentCulture,
PrintConfig\PrtTicket_Public.cs (1)
523return new FormatException(String.Format(CultureInfo.CurrentCulture,
System.ComponentModel.TypeConverter (8)
System\ComponentModel\BooleanConverter.cs (1)
39throw new FormatException(SR.Format(SR.ConvertInvalidPrimitive, (string)value, nameof(Boolean)), e);
System\ComponentModel\DateOnlyConverter.cs (1)
66throw new FormatException(SR.Format(SR.ConvertInvalidPrimitive, (string)value, nameof(DateOnly)), e);
System\ComponentModel\DateTimeConverter.cs (1)
70throw new FormatException(SR.Format(SR.ConvertInvalidPrimitive, (string)value, nameof(DateTime)), e);
System\ComponentModel\DateTimeOffsetConverter.cs (1)
70throw new FormatException(SR.Format(SR.ConvertInvalidPrimitive, (string)value, nameof(DateTimeOffset)), e);
System\ComponentModel\EnumConverter.cs (1)
104throw new FormatException(SR.Format(SR.ConvertInvalidPrimitive, (string)value, EnumType.Name), e);
System\ComponentModel\TimeOnlyConverter.cs (1)
66throw new FormatException(SR.Format(SR.ConvertInvalidPrimitive, (string)value, nameof(TimeOnly)), e);
System\ComponentModel\TimeSpanConverter.cs (1)
51throw new FormatException(SR.Format(SR.ConvertInvalidPrimitive, (string)value, nameof(TimeSpan)), e);
System\ComponentModel\VersionConverter.cs (1)
50throw new FormatException(SR.Format(SR.ConvertInvalidPrimitive, versionString, nameof(Version)), e);
System.Data.Odbc (1)
Common\System\Data\Common\AdapterUtil.Odbc.cs (1)
402e = new FormatException(message, inner);
System.IO.Packaging (3)
System\IO\Packaging\FileFormatException.cs (3)
44: base(message ?? SR.FileFormatException, innerException) 90: base( 111: base(message ?? SR.FileFormatException, innerException)
System.Net.Mail (2)
System\Net\Mail\MailAddressParser.cs (1)
447throw new FormatException(SR.MailAddressInvalidFormat, e);
System\Net\Mime\ContentDisposition.cs (1)
329throw new FormatException(SR.ContentDispositionInvalid, exception);
System.Net.Primitives (2)
System\Net\CookieException.cs (1)
31public CookieException(string? message, Exception? innerException) : base(message, innerException)
System\Net\IPAddressParser.cs (1)
63throw new FormatException(SR.dns_bad_ip_address, new SocketException(SocketError.InvalidArgument));
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeFormatException.cs (1)
25: base(message ?? SR.Arg_CustomAttributeFormatException, inner)
System.Private.Uri (1)
System\UriFormatException.cs (1)
24public UriFormatException(string? textString, Exception? e) : base(textString, e)
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\OpacityConverter.cs (1)
67throw new FormatException(
System\Windows\Forms\Internal\Formatter.cs (2)
390throw new FormatException(ex.Message, ex); 485throw new FormatException(ex.InnerException?.Message, ex.InnerException);