Show / Hide Table of Contents

Class ArgumentTypeException

An exception that indicates the use of an unexpected type.

Inheritance
System.Object
System.Exception
System.SystemException
System.ArgumentException
ArgumentTypeException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.ArgumentException.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.ArgumentException.Message
System.ArgumentException.ParamName
System.Exception.GetBaseException()
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Existential
Assembly: Existential.Net.dll
Syntax
[Serializable]
public class ArgumentTypeException : ArgumentException, ISerializable

Constructors

View Source

ArgumentTypeException()

Initialises a new instance of the ArgumentTypeException class.

Declaration
public ArgumentTypeException()
View Source

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 .

View Source

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.

View Source

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.

View Source

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.

Implements

System.Runtime.Serialization.ISerializable

Extension Methods

TypeExtensions.GetGenericAwareFullTypeName<T>(T)
TypeExtensions.GetGenericAwareTypeName<T>(T)
TypeExtensions.IsInstanceOfType<T>(T, Type)
  • View Source
In This Article
Back to top Copyright © 2021 Dr. Gavin T.D. Greig.