SaaS CMS has officially launched! Learn more now.

Class TypeMismatchException

Represents errors that occur when an object is not of the required System.Type.

Inheritance
System.Object
TypeMismatchException
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public class TypeMismatchException : Exception

Constructors

TypeMismatchException()

Initializes a new instance of the TypeMismatchException class.

Declaration
public TypeMismatchException()

TypeMismatchException(SerializationInfo, StreamingContext)

Initializes a new instance with serialized data.

Declaration
protected TypeMismatchException(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

The object that holds the serialized object data.

System.Runtime.Serialization.StreamingContext context

The contextual information about the source or destination.

TypeMismatchException(String)

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

Declaration
public TypeMismatchException(string message)
Parameters
Type Name Description
System.String message

The error message that explains the reason for the exception.

TypeMismatchException(String, Exception)

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

Declaration
public TypeMismatchException(string message, Exception innerException)
Parameters
Type Name Description
System.String message

The error message that explains the reason for the exception.

System.Exception innerException

The inner exception that is the cause of the current exception.

Extension Methods