Class TypeNotFoundException
Represents an exception that is thrown when type data is not found.
Implements
Inherited Members
Namespace: Loehnert.Lisrt.TypeAndResult.Exceptions
Assembly: Loehnert.Lisrt.TypeAndResult.dll
Syntax
[Serializable]
[Export(typeof(ITranslatableException))]
public class TypeNotFoundException : TypeNotFoundException, ISerializable, _Exception, ITranslatableException, ITranslatableText, IHasMessageNumber
Constructors
TypeNotFoundException()
Initializes a new instance of the TypeNotFoundException class.
Declaration
public TypeNotFoundException()
TypeNotFoundException(TypeNotFoundException)
Initializes a new instance of the TypeNotFoundException class. Constructor for the ExceptionTranslator.
Declaration
public TypeNotFoundException(TypeNotFoundException typeNotFoundException)
Parameters
Type | Name | Description |
---|---|---|
TypeNotFoundException | typeNotFoundException | Not translatable 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. |
Properties
Message
Gets the localized exception message.
Declaration
public override string Message { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
MessageNumber
Gets the message number for the defined message type.
Declaration
public int MessageNumber { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Translate(CultureInfo)
Translates a text.
Declaration
public string Translate(CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | culture | Culture the text is translated to. |
Returns
Type | Description |
---|---|
String | A translated text. |