Skip to content

RegexPatternTooLargeException

Definition

Namespace: Corvus.Ecma262.RegularExpressions
Assembly: Corvus.Regex.Ecma262.dll
Source: RegexPatternTooLargeException.cs

The error of a pattern that is over one of the limits of size, which bound the time and the memory that reading and compiling a pattern take whatever the pattern holds. It is not the error of a pattern that is not valid, which is RegexParseException: a pattern over a limit may or may not be valid, and a caller must not report it as one that is not.

public sealed class RegexPatternTooLargeException : ArgumentException, ISerializable

Inheritance

Object → ArgumentException → RegexPatternTooLargeException

Implements

ISerializable

Constructors

Constructor Description
RegexPatternTooLargeException(...) Initializes a new instance of the RegexPatternTooLargeException class.

Properties

Property Type Description
Limit string Gets what the pattern is over, with the limit and its value, as a sentence.
Read bool Gets a value indicating whether the whole pattern was read, and found to be a valid ECMA-262 pattern, before the limit was met. A limit met while reading leaves the rest of the pattern unread.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue