Class ArgumentTypeException
An exception that indicates the use of an unexpected type.
Inheritance
Implements
Inherited Members
Namespace: Existential
Assembly: Existential.Net.dll
Syntax
[Serializable]
public class ArgumentTypeException : ArgumentException, ISerializable
Constructors
View SourceArgumentTypeException()
Initialises a new instance of the ArgumentTypeException class.
Declaration
public ArgumentTypeException()
ArgumentTypeException(SerializationInfo, StreamingContext)
Initialises a new instance of the ArgumentTypeException class with serialised data.
Declaration
protected ArgumentTypeException(SerializationInfo inInfo, StreamingContext inContext)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | inInfo | The object that holds the serialized object data. |
System.Runtime.Serialization.StreamingContext | inContext | The contextual information about the source or destination. |
Remarks
This constructor is called during deserialisation to reconstitute the exception object transmitted over a stream. For more information, see XML and SOAP Serialization .
ArgumentTypeException(String)
Initialises a new instance of the ArgumentTypeException class.
Declaration
public ArgumentTypeException(string inMessage)
Parameters
Type | Name | Description |
---|---|---|
System.String | inMessage | The error message. |
ArgumentTypeException(String, Exception)
Initialises a new instance of the ArgumentTypeException class.
Declaration
public ArgumentTypeException(string inMessage, Exception inException)
Parameters
Type | Name | Description |
---|---|---|
System.String | inMessage | The error message. |
System.Exception | inException | The inner exception. |
ArgumentTypeException(String, String)
Initialises a new instance of the ArgumentTypeException class.
Declaration
public ArgumentTypeException(string inMessage, string inParameterName)
Parameters
Type | Name | Description |
---|---|---|
System.String | inMessage | The error message. |
System.String | inParameterName | The name of the parameter with the unexpected type. |