12 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 (5)
System\DomainNameHelper.cs (2)
208throw new UriFormatException(SR.net_uri_BadUnicodeHostForIdn); 214throw new UriFormatException(SR.net_uri_BadUnicodeHostForIdn);
System\Uri.cs (2)
728return new UriFormatException(message); 2617throw new UriFormatException(SR.Format(SR.net_uri_PortOutOfRange, _syntax.GetType(), portStr));
System\UriBuilder.cs (1)
334throw new UriFormatException(SR.net_uri_BadUserPassword);