Class TypeNotFoundException
The exception that is thrown when an attempt to access a TypeData that does not exist.
Implements
Inherited Members
Namespace: Loehnert.TypeAndResult.Exceptions
Assembly: Loehnert.TypeAndResult.dll
Syntax
[Serializable]
public class TypeNotFoundException : Exception, ISerializable, _Exception
Constructors
TypeNotFoundException()
Initializes a new instance of the TypeNotFoundException class.
Declaration
public TypeNotFoundException()
TypeNotFoundException(SerializationInfo, StreamingContext)
Initializes a new instance of the TypeNotFoundException class with serialized data.
Declaration
protected TypeNotFoundException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
System.Runtime.Serialization.SerializationException | The class name is null or HResult is zero (0). |
TypeNotFoundException(String)
Initializes a new instance of the TypeNotFoundException class.
Declaration
public TypeNotFoundException(string typeIdentifier)
Parameters
Type | Name | Description |
---|---|---|
String | typeIdentifier | Type identifier. |
TypeNotFoundException(String, Exception)
Initializes a new instance of the TypeNotFoundException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public TypeNotFoundException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message that explains the reason for the exception. |
System.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(String, String, Exception)
Initializes a new instance of the TypeNotFoundException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public TypeNotFoundException(string typeIdentifier, string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
String | typeIdentifier | Type identifier. |
String | message | The error message that explains the reason for the exception. |
System.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. |
Fields
TypeNotFoundTranslation
Gets the translatable type not found text.
Declaration
protected static readonly ITranslation TypeNotFoundTranslation
Field Value
Type | Description |
---|---|
Gu.Localization.ITranslation |
Properties
Message
Gets the localized exception message.
Declaration
public override string Message { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
TypeIdentifier
Gets the type identifier.
Declaration
public string TypeIdentifier { get; }
Property Value
Type | Description |
---|---|
String |