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 Object → Exception → InvalidCharacterEscapeException
Implements ISerializable
Remarks:
Initializes a new instance of the InvalidCharacterEscapeException class.
public MethodBase TargetSite { get; }
public string Message { get; }
public IDictionary Data { get; }
public Exception InnerException { get; }
public string HelpLink { get; set; }
public string Source { get; set; }
public int HResult { get; set; }
public string StackTrace { get; }
A custom exception thrown when an invalid character escape sequence is detected.
public InvalidCharacterEscapeException(char targetCharacter, string pattern, int indexOfCharacter, string escapeSequence)
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.
InvalidCharacterEscapeException
Thrown when an invalid character escape sequence is detected.
Remarks:
Initializes a new instance of the InvalidCharacterEscapeException class.