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