Skip to content

RegexParseException

Definition

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

The error of a pattern that is not a valid ECMA-262 pattern in the grammar of its flags.

public sealed class RegexParseException : ArgumentException, ISerializable

Inheritance

Object → ArgumentException → RegexParseException

Implements

ISerializable

Constructors

Constructor Description
RegexParseException(string, int) Initializes a new instance of the RegexParseException class.

Properties

Property Type Description
Offset int Gets where it is, as an offset in the pattern in UTF-16 code units.
Reason string Gets what is wrong.

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