FluentRegex

InvalidCharacterEscapeException

Namespace: FluentRegex.Exceptions

A custom exception thrown when an invalid character escape sequence is detected.

public class InvalidCharacterEscapeException : System.Exception, System.Runtime.Serialization.ISerializable

Inheritance ObjectExceptionInvalidCharacterEscapeException
Implements ISerializable

Remarks:

Initializes a new instance of the InvalidCharacterEscapeException class.

Properties

TargetSite

public MethodBase TargetSite { get; }

Property Value

MethodBase

Message

public string Message { get; }

Property Value

String

Data

public IDictionary Data { get; }

Property Value

IDictionary

InnerException

public Exception InnerException { get; }

Property Value

Exception

public string HelpLink { get; set; }

Property Value

String

Source

public string Source { get; set; }

Property Value

String

HResult

public int HResult { get; set; }

Property Value

Int32

StackTrace

public string StackTrace { get; }

Property Value

String

Constructors

InvalidCharacterEscapeException(Char, String, Int32, String)

A custom exception thrown when an invalid character escape sequence is detected.

public InvalidCharacterEscapeException(char targetCharacter, string pattern, int indexOfCharacter, string escapeSequence)

Parameters

targetCharacter Char
The character that was attempted to be escaped.

pattern String
The pattern that the character was found in.

indexOfCharacter Int32
The index of the character in the pattern.

escapeSequence String
The escape sequence that was used.

Exceptions

InvalidCharacterEscapeException
Thrown when an invalid character escape sequence is detected.

Remarks:

Initializes a new instance of the InvalidCharacterEscapeException class.