class ArgumentException
The exception that is thrown when one of the arguments provided to a method is not valid.
public ArgumentException( string message )
Initializes a new instance of the class with a specified error message.
messageThe error message that explains the reason for the exception.
public ArgumentException( string message, Exception innerException )
Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception.
messageThe error message that explains the reason for the exception.innerExceptionThe exception that is the cause of the current exception. If the parameter is not a null reference, the current exception is raised in a block that handles the inner exception.
public ArgumentException( string message, string paramName )
Initializes a new instance of the class with a specified error message and the name of the parameter that causes this exception.
messageThe error message that explains the reason for the exception.paramNameThe name of the parameter that caused the current exception.
public ArgumentException( string message, string paramName, Exception innerException )
Initializes a new instance of the class with a specified error message, the parameter name, and a reference to the inner exception that is the cause of this exception.
messageThe error message that explains the reason for the exception.paramNameThe name of the parameter that caused the current exception.innerExceptionThe exception that is the cause of the current exception. If the parameter is not a null reference, the current exception is raised in a block that handles the inner exception.
public void GetObjectData( SerializationInfo info, StreamingContext context )
Sets the object with the parameter name and additional exception information.
infoThe object that holds the serialized object data.contextThe contextual information about the source or destination.
public string Message { get; }
Gets the error message and the parameter name, or only the error message if no parameter name is set.
- Returns A text string describing the details of the exception. The value of this property takes one of two forms: Condition Value The is a null reference ( in Visual Basic) or of zero length. The string passed to the constructor. The is not null reference ( in Visual Basic) and it has a length greater than zero. The string appended with the name of the invalid parameter.
public string ParamName { get; }
Gets the name of the parameter that causes this exception.
- Returns The parameter name.
public string ToString( )
😔 No documentation found.
public ArgumentException( )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.
public bool Equals( object obj )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public static void ThrowIfNullOrWhiteSpace( string argument, string paramName = null )
😔 No documentation found.
public string StackTrace { get; }
😔 No documentation found.
public int HResult { get; set; }
😔 No documentation found.
public static void ThrowIfNullOrEmpty( string argument, string paramName = null )
😔 No documentation found.
public string Source { get; set; }
😔 No documentation found.
public string HelpLink { get; set; }
😔 No documentation found.
public Exception InnerException { get; }
😔 No documentation found.
public Exception GetBaseException( )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public IDictionary Data { get; }
😔 No documentation found.