49 references to RegexParseError
System.Text.RegularExpressions (49)
System\Text\RegularExpressions\RegexCharClass.cs (1)
1848throw 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 (46)
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); 592throw MakeException(RegexParseError.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch)); 604throw MakeException(RegexParseError.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch)); 616throw MakeException(RegexParseError.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch)); 629throw MakeException(RegexParseError.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch)); 647throw MakeException(RegexParseError.ReversedCharacterRange, SR.ReversedCharacterRange); 684throw MakeException(RegexParseError.ExclusionGroupNotLast, SR.ExclusionGroupNotLast); 692throw MakeException(RegexParseError.ReversedCharacterRange, SR.ReversedCharacterRange); 717throw MakeException(RegexParseError.ExclusionGroupNotLast, SR.ExclusionGroupNotLast); 732throw MakeException(RegexParseError.UnterminatedBracket, SR.UnterminatedBracket); 857throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 862throw MakeException(RegexParseError.CaptureGroupOfZero, SR.CaptureGroupOfZero); 877throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 887throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 903throw MakeException(RegexParseError.UndefinedNumberedReference, SR.Format(SR.UndefinedNumberedReference, uncapnum)); 909throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 918throw MakeException(RegexParseError.UndefinedNamedReference, SR.Format(SR.UndefinedNamedReference, uncapname)); 923throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 929throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 962throw MakeException(RegexParseError.AlternationHasUndefinedReference, SR.Format(SR.AlternationHasUndefinedReference, capnum.ToString())); 965throw MakeException(RegexParseError.AlternationHasMalformedReference, SR.Format(SR.AlternationHasMalformedReference, capnum.ToString())); 987throw MakeException(RegexParseError.AlternationHasComment, SR.AlternationHasComment); 993throw MakeException(RegexParseError.AlternationHasNamedCapture, SR.AlternationHasNamedCapture); 1033throw MakeException(RegexParseError.InvalidGroupingConstruct, SR.InvalidGroupingConstruct); 1063throw MakeException(RegexParseError.UnterminatedComment, SR.UnterminatedComment); 1177throw MakeException(RegexParseError.MalformedNamedReference, SR.MalformedNamedReference); 1204throw MakeException(RegexParseError.UndefinedNumberedReference, SR.Format(SR.UndefinedNumberedReference, capnum.ToString())); 1254throw MakeException(RegexParseError.UndefinedNumberedReference, SR.Format(SR.UndefinedNumberedReference, capnum.ToString())); 1270throw MakeException(RegexParseError.UndefinedNamedReference, SR.Format(SR.UndefinedNamedReference, capname)); 1330throw MakeException(RegexParseError.QuantifierOrCaptureGroupOutOfRange, SR.QuantifierOrCaptureGroupOutOfRange); 1468throw MakeException(RegexParseError.QuantifierOrCaptureGroupOutOfRange, SR.QuantifierOrCaptureGroupOutOfRange); 1499throw MakeException(RegexParseError.InsufficientOrInvalidHexDigits, SR.InsufficientOrInvalidHexDigits); 1510throw MakeException(RegexParseError.MissingControlCharacter, SR.MissingControlCharacter); 1527throw MakeException(RegexParseError.UnrecognizedControlCharacter, SR.UnrecognizedControlCharacter); 1611throw MakeException(RegexParseError.UnrecognizedEscape, SR.Format(SR.UnrecognizedEscape, ch)); 1622throw MakeException(RegexParseError.InvalidUnicodePropertyEscape, SR.InvalidUnicodePropertyEscape); 1628throw MakeException(RegexParseError.MalformedUnicodePropertyEscape, SR.MalformedUnicodePropertyEscape); 1646throw MakeException(RegexParseError.InvalidUnicodePropertyEscape, SR.InvalidUnicodePropertyEscape); 2056throw MakeException(RegexParseError.AlternationHasMalformedCondition, SR.AlternationHasMalformedCondition); 2098throw MakeException(RegexParseError.AlternationHasTooManyConditions, SR.AlternationHasTooManyConditions); 2111private readonly RegexParseException MakeException(RegexParseError error, string message) =>