Show / Hide Table of Contents

Class InvalidTypeException

The exception that is thrown when an expected type is needed, but another was provided.

Inheritance
Object
Exception
InvalidTypeException
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
Exception.GetObjectData(SerializationInfo, StreamingContext)
System.Exception.GetType()
System.Exception.Message
System.Exception.Data
Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
Exception.HelpLink
System.Exception.Source
Exception.HResult
System.Exception.SerializeObjectState
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
Object.MemberwiseClone()
Namespace: IRM
Assembly: IRM.dll
Syntax
[Serializable]
public class InvalidTypeException : Exception, ISerializable, _Exception

Constructors

InvalidTypeException()

Initializes a new instance of the InvalidTypeException class.

Declaration
public InvalidTypeException()

InvalidTypeException(SerializationInfo, StreamingContext)

Initializes a new instance of the InvalidTypeException class with serialized data.

Declaration
protected InvalidTypeException(SerializationInfo info, StreamingContext context)
Parameters
SerializationInfo info

The object that holds the serialized object data.

StreamingContext context

The contextual information about the source or destination.

InvalidTypeException(String)

Initializes a new instance of the InvalidTypeException class with a specified error message.

Declaration
public InvalidTypeException(string message)
Parameters
String message

The message that describes the error.

InvalidTypeException(String, Exception)

Initializes a new instance of the InvalidTypeException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Declaration
public InvalidTypeException(string message, Exception innerException)
Parameters
String message

The error message that explains the reason for the exception.

Exception innerException

The exception that is the cause of the current exception. If the innerException parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.

Extension Methods

ObjectExtensions.DeepClone<T>(T)
ExceptionExtensions.GetSleepDuration(Exception, TimeSpan)
AnnotationsExtensions.IsValid(Object)
Back to top Generated by DocFX