Skip to content

RegexMatchTimeoutException

Definition

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

The error of a match that was abandoned at its limit: it ran for longer than the match timeout, or it needed more backtracking memory than a match may hold. Neither is an answer.

public sealed class RegexMatchTimeoutException : TimeoutException, ISerializable

Inheritance

Object → TimeoutException → RegexMatchTimeoutException

Implements

ISerializable

Constructors

Constructor Description
RegexMatchTimeoutException(string, TimeSpan, bool) Initializes a new instance of the RegexMatchTimeoutException class.

Properties

Property Type Description
ExceededMemory bool Gets a value indicating whether the match was abandoned for its memory, which .NET has no exception of its own for, rather than its time.
MatchTimeout TimeSpan Gets the timeout.
Pattern string Gets the pattern.

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