Class InvalidTypeException
The exception that is thrown when an expected type is needed, but another was provided.
Inherited Members
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 |