In This Article

InvalidRegexPatternException Class

An exception that is thrown when parsing invalid regular expression patterns.

public class InvalidRegexPatternException : Exception
Inheritance:
object Exception object

Constructors

InvalidRegexPatternException()

Initializes an instance of the class.

public InvalidRegexPatternException()

InvalidRegexPatternException(string)

Initializes an instance of the class with a specified error message.

public InvalidRegexPatternException(string message)
Parameter Type Description
message string

The error message that explains the reason for the exception.

InvalidRegexPatternException(string, Exception?)

Initializes an instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception.

public InvalidRegexPatternException(string message, Exception? innerException)
Parameter Type Description
message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception.

Inherited Members

Extension Methods