23 references to UriFormatException
Microsoft.Extensions.AI.Abstractions (4)
Contents\DataUriParser.cs (4)
31throw new UriFormatException("Invalid data URI format: the data URI must start with 'data:'."); 40throw new UriFormatException("Invalid data URI format: the data URI must contain a comma separating the metadata and the data."); 57throw new UriFormatException("Invalid data URI format: the data URI is base64-encoded, but the data is not a valid base64 string."); 66throw new UriFormatException("Invalid data URI format: the media type is not a valid.");
PresentationCore (3)
System\Windows\Navigation\BaseUriHelper.cs (3)
274throw new UriFormatException(SR.WrongFirstSegment); 295throw new UriFormatException(SR.WrongFirstSegment); 306throw new UriFormatException(SR.WrongFirstSegment);
System.Private.Uri (16)
System\DomainNameHelper.cs (2)
208throw new UriFormatException(SR.net_uri_BadUnicodeHostForIdn); 214throw new UriFormatException(SR.net_uri_BadUnicodeHostForIdn);
System\Uri.cs (13)
706return new UriFormatException(SR.net_uri_BadFormat); 708return new UriFormatException(SR.net_uri_BadScheme); 710return new UriFormatException(SR.net_uri_BadAuthority); 712return new UriFormatException(SR.net_uri_EmptyUri); 715return new UriFormatException(SR.net_uri_SchemeLimit); 717return new UriFormatException(SR.net_uri_MustRootedPath); 720return new UriFormatException(SR.net_uri_BadHostName); 722return new UriFormatException(SR.net_uri_BadFormat); 724return new UriFormatException(SR.net_uri_BadPort); 726return new UriFormatException(SR.net_uri_BadAuthorityTerminator); 728return new UriFormatException(SR.net_uri_CannotCreateRelative); 732return new UriFormatException(SR.net_uri_BadFormat); 2682throw new UriFormatException(SR.Format(SR.net_uri_PortOutOfRange, _syntax.GetType(), portStr));
System\UriBuilder.cs (1)
310throw new UriFormatException(SR.net_uri_BadUserPassword);