99 references to ParsingError
System (99)
net\System\URI.cs (79)
553
private unsafe static
ParsingError
GetCombinedString(Uri baseUri, string relativeStr,
577
if (CheckSchemeSyntax(sptr, (ushort) scheme.Length, ref syntax) ==
ParsingError
.None) {
591
return
ParsingError
.None;
601
return
ParsingError
.None;
605
return
ParsingError
.None;
608
private static UriFormatException GetException(
ParsingError
err)
612
case
ParsingError
.None:
615
case
ParsingError
.BadFormat:
617
case
ParsingError
.BadScheme:
619
case
ParsingError
.BadAuthority:
621
case
ParsingError
.EmptyUriString:
624
case
ParsingError
.SchemeLimit:
626
case
ParsingError
.SizeLimit:
628
case
ParsingError
.MustRootedPath:
631
case
ParsingError
.BadHostName:
633
case
ParsingError
.NonEmptyHost: //unix-only
635
case
ParsingError
.BadPort:
637
case
ParsingError
.BadAuthorityTerminator:
639
case
ParsingError
.CannotCreateRelative:
1985
private static unsafe
ParsingError
ParseScheme(string uriString, ref Flags flags, ref UriParser syntax)
1989
return
ParsingError
.EmptyUriString;
1993
return
ParsingError
.SizeLimit;
1998
ParsingError
err =
ParsingError
.None;
2001
if (err !=
ParsingError
.None)
2006
return
ParsingError
.None;
2016
ParsingError
result = PrivateParseMinimal();
2017
if (result ==
ParsingError
.None)
2036
private unsafe
ParsingError
PrivateParseMinimal()
2094
return
ParsingError
.MustRootedPath;
2152
return
ParsingError
.BadAuthority;
2169
return
ParsingError
.None;
2173
return
ParsingError
.BadAuthority;
2184
return
ParsingError
.None;
2196
return
ParsingError
.None;
2208
ParsingError
err =
ParsingError
.None;
2210
if (err !=
ParsingError
.None)
2216
return
ParsingError
.BadAuthorityTerminator;
2232
return
ParsingError
.None;
2607
throw GetException(
ParsingError
.BadHostName);
2630
throw GetException(
ParsingError
.SizeLimit);
2632
ParsingError
err =
ParsingError
.None;
2647
if (err !=
ParsingError
.None || (flags & Flags.HostTypeMask) == Flags.UnknownHostType)
3366
UriFormatException e = GetException(
ParsingError
.BadFormat);
3371
UriFormatException e = GetException(
ParsingError
.SizeLimit);
3488
UriFormatException e = GetException(
ParsingError
.BadFormat);
3493
UriFormatException e = GetException(
ParsingError
.SizeLimit);
3546
UriFormatException e = GetException(
ParsingError
.BadFormat);
3551
UriFormatException e = GetException(
ParsingError
.SizeLimit);
3601
ref
ParsingError
err, ref Flags flags, ref UriParser syntax) {
3632
err =
ParsingError
.BadFormat;
3649
err =
ParsingError
.MustRootedPath;
3654
err =
ParsingError
.BadScheme;
3656
err =
ParsingError
.BadFormat;
3672
err =
ParsingError
.BadFormat;
3699
err =
ParsingError
.BadFormat;
3707
err =
ParsingError
.SchemeLimit;
3717
if (err !=
ParsingError
.None) {
3864
unsafe static private
ParsingError
CheckSchemeSyntax(char* ptr, ushort length, ref UriParser syntax) {
3873
return
ParsingError
.BadScheme;
3888
return
ParsingError
.BadScheme;
3895
return
ParsingError
.None;
3906
ref
ParsingError
err, ref Flags flags, UriParser syntax, ref string newHost )
3931
err =
ParsingError
.BadHostName;
3936
err =
ParsingError
.BadHostName;
3980
err =
ParsingError
.BadFormat;
3987
err =
ParsingError
.SizeLimit;
4113
err =
ParsingError
.BadHostName;
4151
err =
ParsingError
.BadPort;
4165
err =
ParsingError
.BadPort;
4222
err =
ParsingError
.BadHostName;
4239
err =
ParsingError
.BadFormat;
4249
err =
ParsingError
.BadHostName;
4260
ref bool justNormalized, ref string newHost, ref
ParsingError
err)
4325
err =
ParsingError
.BadHostName;
4335
ref Flags flags, ref string newHost, ref
ParsingError
err)
4381
err =
ParsingError
.BadHostName;
net\System\UriExt.cs (20)
45
ParsingError
err = ParseScheme(m_String, ref m_Flags, ref m_Syntax);
53
private void InitializeUri(
ParsingError
err, UriKind uriKind, out UriFormatException e)
55
if (err ==
ParsingError
.None)
92
else if (err >
ParsingError
.LastRelativeUriOkErrIndex)
124
if ((err = PrivateParseMinimal()) !=
ParsingError
.None)
126
if (uriKind != UriKind.Absolute && err <=
ParsingError
.LastRelativeUriOkErrIndex)
139
e = GetException(
ParsingError
.CannotCreateRelative);
147
if (m_iriParsing && hasUnicode && (uriKind == UriKind.Absolute || err ==
ParsingError
.None))
182
if (uriKind != UriKind.Absolute && err !=
ParsingError
.None
183
&& err <=
ParsingError
.LastRelativeUriOkErrIndex)
192
if (err !=
ParsingError
.None || InFact(Flags.ErrorOrParsingRecursion))
201
e = GetException(
ParsingError
.CannotCreateRelative);
230
else if (err !=
ParsingError
.None && uriKind != UriKind.Absolute
231
&& err <=
ParsingError
.LastRelativeUriOkErrIndex)
247
e = GetException(
ParsingError
.BadFormat);
700
ParsingError
err = ParseScheme(uriString, ref flags, ref syntax);
706
if (err !=
ParsingError
.None)
709
if (uriKind != UriKind.Absolute && err <=
ParsingError
.LastRelativeUriOkErrIndex)
818
ParsingError
err = GetCombinedString(baseUri, relativeStr, userEscaped, ref newUriString);
820
if (err !=
ParsingError
.None)