49 references to RegexParseError
System.Text.RegularExpressions (49)
System\Text\RegularExpressions\RegexCharClass.cs (1)
1848
throw new RegexParseException(
RegexParseError
.UnrecognizedUnicodeProperty, currentPos,
System\Text\RegularExpressions\RegexParseException.cs (2)
22
public
RegexParseError
Error { get; }
29
internal RegexParseException(
RegexParseError
error, int offset, string message) : base(message)
System\Text\RegularExpressions\RegexParser.cs (46)
371
throw MakeException(
RegexParseError
.InsufficientOpeningParentheses, SR.InsufficientOpeningParentheses);
387
throw MakeException(
RegexParseError
.UnescapedEndingBackslash, SR.UnescapedEndingBackslash);
414
MakeException(
RegexParseError
.NestedQuantifiersNotParenthesized, SR.Format(SR.NestedQuantifiersNotParenthesized, ch)) :
415
MakeException(
RegexParseError
.QuantifierAfterNothing, SR.Format(SR.QuantifierAfterNothing, ch));
494
throw MakeException(
RegexParseError
.ReversedQuantifierRange, SR.ReversedQuantifierRange);
510
throw MakeException(
RegexParseError
.InsufficientClosingParentheses, SR.InsufficientClosingParentheses);
592
throw MakeException(
RegexParseError
.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch));
604
throw MakeException(
RegexParseError
.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch));
616
throw MakeException(
RegexParseError
.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch));
629
throw MakeException(
RegexParseError
.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch));
647
throw MakeException(
RegexParseError
.ReversedCharacterRange, SR.ReversedCharacterRange);
684
throw MakeException(
RegexParseError
.ExclusionGroupNotLast, SR.ExclusionGroupNotLast);
692
throw MakeException(
RegexParseError
.ReversedCharacterRange, SR.ReversedCharacterRange);
717
throw MakeException(
RegexParseError
.ExclusionGroupNotLast, SR.ExclusionGroupNotLast);
732
throw MakeException(
RegexParseError
.UnterminatedBracket, SR.UnterminatedBracket);
857
throw MakeException(
RegexParseError
.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid);
862
throw MakeException(
RegexParseError
.CaptureGroupOfZero, SR.CaptureGroupOfZero);
877
throw MakeException(
RegexParseError
.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid);
887
throw MakeException(
RegexParseError
.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid);
903
throw MakeException(
RegexParseError
.UndefinedNumberedReference, SR.Format(SR.UndefinedNumberedReference, uncapnum));
909
throw MakeException(
RegexParseError
.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid);
918
throw MakeException(
RegexParseError
.UndefinedNamedReference, SR.Format(SR.UndefinedNamedReference, uncapname));
923
throw MakeException(
RegexParseError
.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid);
929
throw MakeException(
RegexParseError
.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid);
962
throw MakeException(
RegexParseError
.AlternationHasUndefinedReference, SR.Format(SR.AlternationHasUndefinedReference, capnum.ToString()));
965
throw MakeException(
RegexParseError
.AlternationHasMalformedReference, SR.Format(SR.AlternationHasMalformedReference, capnum.ToString()));
987
throw MakeException(
RegexParseError
.AlternationHasComment, SR.AlternationHasComment);
993
throw MakeException(
RegexParseError
.AlternationHasNamedCapture, SR.AlternationHasNamedCapture);
1033
throw MakeException(
RegexParseError
.InvalidGroupingConstruct, SR.InvalidGroupingConstruct);
1063
throw MakeException(
RegexParseError
.UnterminatedComment, SR.UnterminatedComment);
1177
throw MakeException(
RegexParseError
.MalformedNamedReference, SR.MalformedNamedReference);
1204
throw MakeException(
RegexParseError
.UndefinedNumberedReference, SR.Format(SR.UndefinedNumberedReference, capnum.ToString()));
1254
throw MakeException(
RegexParseError
.UndefinedNumberedReference, SR.Format(SR.UndefinedNumberedReference, capnum.ToString()));
1270
throw MakeException(
RegexParseError
.UndefinedNamedReference, SR.Format(SR.UndefinedNamedReference, capname));
1330
throw MakeException(
RegexParseError
.QuantifierOrCaptureGroupOutOfRange, SR.QuantifierOrCaptureGroupOutOfRange);
1468
throw MakeException(
RegexParseError
.QuantifierOrCaptureGroupOutOfRange, SR.QuantifierOrCaptureGroupOutOfRange);
1499
throw MakeException(
RegexParseError
.InsufficientOrInvalidHexDigits, SR.InsufficientOrInvalidHexDigits);
1510
throw MakeException(
RegexParseError
.MissingControlCharacter, SR.MissingControlCharacter);
1527
throw MakeException(
RegexParseError
.UnrecognizedControlCharacter, SR.UnrecognizedControlCharacter);
1611
throw MakeException(
RegexParseError
.UnrecognizedEscape, SR.Format(SR.UnrecognizedEscape, ch));
1622
throw MakeException(
RegexParseError
.InvalidUnicodePropertyEscape, SR.InvalidUnicodePropertyEscape);
1628
throw MakeException(
RegexParseError
.MalformedUnicodePropertyEscape, SR.MalformedUnicodePropertyEscape);
1646
throw MakeException(
RegexParseError
.InvalidUnicodePropertyEscape, SR.InvalidUnicodePropertyEscape);
2056
throw MakeException(
RegexParseError
.AlternationHasMalformedCondition, SR.AlternationHasMalformedCondition);
2098
throw MakeException(
RegexParseError
.AlternationHasTooManyConditions, SR.AlternationHasTooManyConditions);
2111
private readonly RegexParseException MakeException(
RegexParseError
error, string message) =>