48 references to RegexParseError
System.Text.RegularExpressions (48)
System\Text\RegularExpressions\RegexCharClass.cs (1)
1837throw 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); 414MakeException(RegexParseError.NestedQuantifiersNotParenthesized, SR.Format(SR.NestedQuantifiersNotParenthesized, ch)) : 415MakeException(RegexParseError.QuantifierAfterNothing, SR.Format(SR.QuantifierAfterNothing, ch)); 494throw MakeException(RegexParseError.ReversedQuantifierRange, SR.ReversedQuantifierRange); 510throw MakeException(RegexParseError.InsufficientClosingParentheses, SR.InsufficientClosingParentheses); 626throw MakeException(RegexParseError.ExclusionGroupNotLast, SR.ExclusionGroupNotLast); 647throw MakeException(RegexParseError.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch)); 659throw MakeException(RegexParseError.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch)); 671throw MakeException(RegexParseError.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch)); 684throw MakeException(RegexParseError.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch)); 702throw MakeException(RegexParseError.ReversedCharacterRange, SR.ReversedCharacterRange); 746throw MakeException(RegexParseError.ReversedCharacterRange, SR.ReversedCharacterRange); 784throw MakeException(RegexParseError.UnterminatedBracket, SR.UnterminatedBracket); 904throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 909throw MakeException(RegexParseError.CaptureGroupOfZero, SR.CaptureGroupOfZero); 924throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 934throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 950throw MakeException(RegexParseError.UndefinedNumberedReference, SR.Format(SR.UndefinedNumberedReference, uncapnum)); 956throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 965throw MakeException(RegexParseError.UndefinedNamedReference, SR.Format(SR.UndefinedNamedReference, uncapname)); 970throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 976throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 1009throw MakeException(RegexParseError.AlternationHasUndefinedReference, SR.Format(SR.AlternationHasUndefinedReference, capnum.ToString())); 1012throw MakeException(RegexParseError.AlternationHasMalformedReference, SR.Format(SR.AlternationHasMalformedReference, capnum.ToString())); 1034throw MakeException(RegexParseError.AlternationHasComment, SR.AlternationHasComment); 1040throw MakeException(RegexParseError.AlternationHasNamedCapture, SR.AlternationHasNamedCapture); 1080throw MakeException(RegexParseError.InvalidGroupingConstruct, SR.InvalidGroupingConstruct); 1110throw MakeException(RegexParseError.UnterminatedComment, SR.UnterminatedComment); 1224throw MakeException(RegexParseError.MalformedNamedReference, SR.MalformedNamedReference); 1251throw MakeException(RegexParseError.UndefinedNumberedReference, SR.Format(SR.UndefinedNumberedReference, capnum.ToString())); 1301throw MakeException(RegexParseError.UndefinedNumberedReference, SR.Format(SR.UndefinedNumberedReference, capnum.ToString())); 1317throw MakeException(RegexParseError.UndefinedNamedReference, SR.Format(SR.UndefinedNamedReference, capname)); 1377throw MakeException(RegexParseError.QuantifierOrCaptureGroupOutOfRange, SR.QuantifierOrCaptureGroupOutOfRange); 1515throw MakeException(RegexParseError.QuantifierOrCaptureGroupOutOfRange, SR.QuantifierOrCaptureGroupOutOfRange); 1546throw MakeException(RegexParseError.InsufficientOrInvalidHexDigits, SR.InsufficientOrInvalidHexDigits); 1557throw MakeException(RegexParseError.MissingControlCharacter, SR.MissingControlCharacter); 1574throw MakeException(RegexParseError.UnrecognizedControlCharacter, SR.UnrecognizedControlCharacter); 1658throw MakeException(RegexParseError.UnrecognizedEscape, SR.Format(SR.UnrecognizedEscape, ch)); 1669throw MakeException(RegexParseError.InvalidUnicodePropertyEscape, SR.InvalidUnicodePropertyEscape); 1675throw MakeException(RegexParseError.MalformedUnicodePropertyEscape, SR.MalformedUnicodePropertyEscape); 1693throw MakeException(RegexParseError.InvalidUnicodePropertyEscape, SR.InvalidUnicodePropertyEscape); 2085throw MakeException(RegexParseError.AlternationHasMalformedCondition, SR.AlternationHasMalformedCondition); 2127throw MakeException(RegexParseError.AlternationHasTooManyConditions, SR.AlternationHasTooManyConditions); 2140private readonly RegexParseException MakeException(RegexParseError error, string message) =>