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
SerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
context
StreamingContextThe 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
stringThe 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
stringThe error message that explains the reason for the exception.
paramName
stringThe 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)