48 references to RegexParseError
System.Text.RegularExpressions (48)
System\Text\RegularExpressions\RegexCharClass.cs (1)
1857throw new RegexParseException(RegexParseError.UnrecognizedUnicodeProperty, currentPos,
System\Text\RegularExpressions\RegexParseException.cs (2)
22public RegexParseError Error { get; } 29internal RegexParseException(RegexParseError error, int offset, string message) : base(message)
System\Text\RegularExpressions\RegexParser.cs (45)
371throw MakeException(RegexParseError.InsufficientOpeningParentheses, SR.InsufficientOpeningParentheses); 387throw MakeException(RegexParseError.UnescapedEndingBackslash, SR.UnescapedEndingBackslash); 437MakeException(RegexParseError.NestedQuantifiersNotParenthesized, SR.Format(SR.NestedQuantifiersNotParenthesized, ch)) : 438MakeException(RegexParseError.QuantifierAfterNothing, SR.Format(SR.QuantifierAfterNothing, ch)); 517throw MakeException(RegexParseError.ReversedQuantifierRange, SR.ReversedQuantifierRange); 533throw MakeException(RegexParseError.InsufficientClosingParentheses, SR.InsufficientClosingParentheses); 649throw MakeException(RegexParseError.ExclusionGroupNotLast, SR.ExclusionGroupNotLast); 670throw MakeException(RegexParseError.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch)); 682throw MakeException(RegexParseError.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch)); 694throw MakeException(RegexParseError.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch)); 707throw MakeException(RegexParseError.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch)); 725throw MakeException(RegexParseError.ReversedCharacterRange, SR.ReversedCharacterRange); 769throw MakeException(RegexParseError.ReversedCharacterRange, SR.ReversedCharacterRange); 807throw MakeException(RegexParseError.UnterminatedBracket, SR.UnterminatedBracket); 927throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 932throw MakeException(RegexParseError.CaptureGroupOfZero, SR.CaptureGroupOfZero); 947throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 957throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 973throw MakeException(RegexParseError.UndefinedNumberedReference, SR.Format(SR.UndefinedNumberedReference, uncapnum)); 979throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 988throw MakeException(RegexParseError.UndefinedNamedReference, SR.Format(SR.UndefinedNamedReference, uncapname)); 993throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 999throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 1032throw MakeException(RegexParseError.AlternationHasUndefinedReference, SR.Format(SR.AlternationHasUndefinedReference, capnum.ToString())); 1035throw MakeException(RegexParseError.AlternationHasMalformedReference, SR.Format(SR.AlternationHasMalformedReference, capnum.ToString())); 1057throw MakeException(RegexParseError.AlternationHasComment, SR.AlternationHasComment); 1063throw MakeException(RegexParseError.AlternationHasNamedCapture, SR.AlternationHasNamedCapture); 1104throw MakeException(RegexParseError.InvalidGroupingConstruct, SR.InvalidGroupingConstruct); 1134throw MakeException(RegexParseError.UnterminatedComment, SR.UnterminatedComment); 1252throw MakeException(RegexParseError.MalformedNamedReference, SR.MalformedNamedReference); 1279throw MakeException(RegexParseError.UndefinedNumberedReference, SR.Format(SR.UndefinedNumberedReference, capnum.ToString())); 1329throw MakeException(RegexParseError.UndefinedNumberedReference, SR.Format(SR.UndefinedNumberedReference, capnum.ToString())); 1345throw MakeException(RegexParseError.UndefinedNamedReference, SR.Format(SR.UndefinedNamedReference, capname)); 1405throw MakeException(RegexParseError.QuantifierOrCaptureGroupOutOfRange, SR.QuantifierOrCaptureGroupOutOfRange); 1543throw MakeException(RegexParseError.QuantifierOrCaptureGroupOutOfRange, SR.QuantifierOrCaptureGroupOutOfRange); 1574throw MakeException(RegexParseError.InsufficientOrInvalidHexDigits, SR.InsufficientOrInvalidHexDigits); 1585throw MakeException(RegexParseError.MissingControlCharacter, SR.MissingControlCharacter); 1602throw MakeException(RegexParseError.UnrecognizedControlCharacter, SR.UnrecognizedControlCharacter); 1686throw MakeException(RegexParseError.UnrecognizedEscape, SR.Format(SR.UnrecognizedEscape, ch)); 1697throw MakeException(RegexParseError.InvalidUnicodePropertyEscape, SR.InvalidUnicodePropertyEscape); 1703throw MakeException(RegexParseError.MalformedUnicodePropertyEscape, SR.MalformedUnicodePropertyEscape); 1721throw MakeException(RegexParseError.InvalidUnicodePropertyEscape, SR.InvalidUnicodePropertyEscape); 2232throw MakeException(RegexParseError.AlternationHasMalformedCondition, SR.AlternationHasMalformedCondition); 2274throw MakeException(RegexParseError.AlternationHasTooManyConditions, SR.AlternationHasTooManyConditions); 2287private readonly RegexParseException MakeException(RegexParseError error, string message) =>