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