Table of Contents

Class InvalidCharacterException

Namespace
LuhnDotNet
Assembly
LuhnDotNet.dll

The exception that is thrown when an invalid character is encountered within an argument.

[Serializable]
public class InvalidCharacterException : ArgumentException, ISerializable
Inheritance
InvalidCharacterException
Implements
Inherited Members

Constructors

InvalidCharacterException()

Initializes a new instance of the InvalidCharacterException class.

public InvalidCharacterException()

InvalidCharacterException(SerializationInfo, StreamingContext)

Initializes a new instance of the InvalidCharacterException class with serialized data.

[Obsolete("This constructor is obsolete and will be removed in a future version. Use InvalidCharacterException(string message, string paramName, Exception innerException) instead.", false)]
protected InvalidCharacterException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context StreamingContext

The StreamingContext that contains contextual information about the source or destination.

InvalidCharacterException(string)

Initializes a new instance of the InvalidCharacterException class with a specified error message.

public InvalidCharacterException(string message)

Parameters

message string

The message that describes the error.

InvalidCharacterException(string, string?)

Initializes a new instance of the InvalidCharacterException class with a specified error message and the name of the parameter that caused this exception.

public InvalidCharacterException(string message, string? paramName)

Parameters

message string

The error message that explains the reason for the exception.

paramName string

The name of the parameter that caused the current exception.

InvalidCharacterException(string, string?, Exception)

Initializes a new instance of the InvalidCharacterException class with a specified error message, the parameter name, and a reference to the inner exception that is the cause of this exception.

public InvalidCharacterException(string message, string? paramName, Exception innerException)

Parameters

message string

The error message that explains the reason for the exception.

paramName string

The name of the parameter that caused the current exception.

innerException Exception

The exception that is the cause of the current exception or a null reference if no inner exception is specified.