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