25 references to UriFormatException
Microsoft.Extensions.AI.Abstractions (5)
Contents\DataContent.cs (1)
91
throw new
UriFormatException
("The URI is not well-formed.");
Contents\DataUriParser.cs (4)
27
throw new
UriFormatException
("Invalid data URI format: the data URI must start with 'data:'.");
36
throw new
UriFormatException
("Invalid data URI format: the data URI must contain a comma separating the metadata and the data.");
53
throw new
UriFormatException
("Invalid data URI format: the data URI is base64-encoded, but the data is not a valid base64 string.");
61
throw new
UriFormatException
("Invalid data URI format: the media type is not a valid.");
PresentationCore (3)
System\Windows\Navigation\BaseUriHelper.cs (3)
275
throw new
UriFormatException
(SR.WrongFirstSegment);
296
throw new
UriFormatException
(SR.WrongFirstSegment);
307
throw new
UriFormatException
(SR.WrongFirstSegment);
System.Private.Uri (17)
System\DomainNameHelper.cs (2)
208
throw new
UriFormatException
(SR.net_uri_BadUnicodeHostForIdn);
214
throw new
UriFormatException
(SR.net_uri_BadUnicodeHostForIdn);
System\Uri.cs (14)
657
return new
UriFormatException
(SR.net_uri_BadFormat);
659
return new
UriFormatException
(SR.net_uri_BadScheme);
661
return new
UriFormatException
(SR.net_uri_BadAuthority);
663
return new
UriFormatException
(SR.net_uri_EmptyUri);
666
return new
UriFormatException
(SR.net_uri_SchemeLimit);
668
return new
UriFormatException
(SR.net_uri_SizeLimit);
670
return new
UriFormatException
(SR.net_uri_MustRootedPath);
673
return new
UriFormatException
(SR.net_uri_BadHostName);
675
return new
UriFormatException
(SR.net_uri_BadFormat);
677
return new
UriFormatException
(SR.net_uri_BadPort);
679
return new
UriFormatException
(SR.net_uri_BadAuthorityTerminator);
681
return new
UriFormatException
(SR.net_uri_CannotCreateRelative);
685
return new
UriFormatException
(SR.net_uri_BadFormat);
2636
throw new
UriFormatException
(SR.Format(SR.net_uri_PortOutOfRange, _syntax.GetType(), portStr));
System\UriBuilder.cs (1)
310
throw new
UriFormatException
(SR.net_uri_BadUserPassword);