Table of Contents

Class TypeNotFoundException

Namespace
Loehnert.TypeAndResult.Exceptions
Assembly
Loehnert.TypeAndResult.dll

The exception that is thrown when an attempt to access a TypeData that does not exist.

[Serializable]
public class TypeNotFoundException : Exception, ISerializable, _Exception
Inheritance
TypeNotFoundException
Implements
Derived
Inherited Members

Constructors

TypeNotFoundException()

Initializes a new instance of the TypeNotFoundException class.

public TypeNotFoundException()

TypeNotFoundException(SerializationInfo, StreamingContext)

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

protected TypeNotFoundException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Exceptions

ArgumentNullException

The info parameter is null.

SerializationException

The class name is null or HResult is zero (0).

TypeNotFoundException(string)

Initializes a new instance of the TypeNotFoundException class.

public TypeNotFoundException(string typeIdentifier)

Parameters

typeIdentifier string

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.

public TypeNotFoundException(string message, Exception innerException)

Parameters

message string

The error message that explains the reason for the exception.

innerException Exception

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.

public TypeNotFoundException(string typeIdentifier, string message, Exception innerException)

Parameters

typeIdentifier string

Type identifier.

message string

The error message that explains the reason for the exception.

innerException Exception

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.

protected static readonly ITranslation TypeNotFoundTranslation

Field Value

ITranslation

Properties

Message

Gets the localized exception message.

public override string Message { get; }

Property Value

string

TypeIdentifier

Gets the type identifier.

public string TypeIdentifier { get; }

Property Value

string