Class TypeNotFoundException
An exception that is thrown when a problem occurs with the generic type of a method.
Implements
Inherited Members
Namespace: SpiceSharp
Assembly: SpiceSharp.dll
Syntax
[Serializable]
public class TypeNotFoundException : SpiceSharpException, ISerializable
Constructors
TypeNotFoundException()
Initializes a new instance of the TypeNotFoundException class.
Declaration
public TypeNotFoundException()
TypeNotFoundException(SerializationInfo, StreamingContext)
Initializes a new instance of the TypeNotFoundException class.
Declaration
protected TypeNotFoundException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The serialization info. |
StreamingContext | context | The streaming context. |
TypeNotFoundException(string)
Initializes a new instance of the TypeNotFoundException class.
Declaration
public TypeNotFoundException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message that describes the error. |
TypeNotFoundException(string, Exception)
Initializes a new instance of the TypeNotFoundException class.
Declaration
public TypeNotFoundException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
string | message | The error message that explains the reason for the exception. |
Exception | innerException | The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. |
TypeNotFoundException(Type, string)
Initializes a new instance of the TypeNotFoundException class.
Declaration
public TypeNotFoundException(Type type, string message)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type. |
string | message | The message. |
TypeNotFoundException(Type, string, Exception)
Initializes a new instance of the TypeNotFoundException class.
Declaration
public TypeNotFoundException(Type type, string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type. |
string | message | The message. |
Exception | innerException | The inner exception. |
Properties
Type
Gets the type of the generic.
Declaration
public Type Type { get; }
Property Value
Type | Description |
---|---|
Type | The type of the generic. |
Methods
GetObjectData(SerializationInfo, StreamingContext)
Populates a SerializationInfo with the data needed to serialize the target object.
Declaration
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The serialization info |
StreamingContext | context | The streaming context |