Class InvalidArgumentException
Exception that is thrown when an argument has an invalid value, and no other inheritors of ArgumentException properly describes the error.
Implements
Inherited Members
Namespace: TheXDS.MCART.Exceptions
Assembly: MCART.dll
Syntax
[Serializable]
public class InvalidArgumentException : ArgumentException, ISerializable
Constructors
| Edit this page View SourceInvalidArgumentException()
Initializes a new instance of the InvalidArgumentException class.
Declaration
public InvalidArgumentException()
InvalidArgumentException(Exception)
Initializes a new instance of the InvalidArgumentException class.
Declaration
public InvalidArgumentException(Exception inner)
Parameters
| Type | Name | Description |
|---|---|---|
| Exception | inner | Exception that is the cause of this exception. |
InvalidArgumentException(Exception, string)
Initializes a new instance of the InvalidArgumentException class.
Declaration
public InvalidArgumentException(Exception inner, string argumentName)
Parameters
| Type | Name | Description |
|---|---|---|
| Exception | inner | Exception that is the cause of this exception. |
| string | argumentName | Name of the invalid argument. |
InvalidArgumentException(string)
Initializes a new instance of the InvalidArgumentException class.
Declaration
public InvalidArgumentException(string argumentName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | argumentName | Name of the invalid argument. |
InvalidArgumentException(string, Exception)
Initializes a new instance of the InvalidArgumentException class.
Declaration
public InvalidArgumentException(string message, Exception inner)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | Message that describes the exception. |
| Exception | inner | Exception that is the cause of this exception. |
InvalidArgumentException(string, Exception, string)
Initializes a new instance of the InvalidArgumentException class.
Declaration
public InvalidArgumentException(string message, Exception inner, string argumentName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | Message that describes the exception. |
| Exception | inner | Exception that is the cause of this exception. |
| string | argumentName | Name of the invalid argument. |
InvalidArgumentException(string, string)
Initializes a new instance of the InvalidArgumentException class.
Declaration
public InvalidArgumentException(string message, string argumentName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | Message that describes the exception. |
| string | argumentName | Name of the invalid argument. |