Class TypeNotFoundException
- Namespace
- Loehnert.Lisrt.TypeAndResult.Exceptions
- Assembly
- Loehnert.Lisrt.TypeAndResult.dll
Represents an exception that is thrown when type data is not found.
[Serializable]
[Export(typeof(ITranslatableException))]
public class TypeNotFoundException : TypeNotFoundException, ISerializable, _Exception, ITranslatableException, ITranslatableText, IHasMessageNumber
- Inheritance
-
TypeNotFoundException
- Implements
- Inherited Members
Constructors
TypeNotFoundException()
Initializes a new instance of the TypeNotFoundException class.
public TypeNotFoundException()
TypeNotFoundException(TypeNotFoundException)
Initializes a new instance of the TypeNotFoundException class. Constructor for the ExceptionTranslator.
public TypeNotFoundException(TypeNotFoundException typeNotFoundException)
Parameters
typeNotFoundException
TypeNotFoundExceptionNot translatable TypeNotFoundException.
TypeNotFoundException(SerializationInfo, StreamingContext)
Initializes a new instance of the TypeNotFoundException class with serialized data.
protected TypeNotFoundException(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
context
StreamingContextThe 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
stringType 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
stringThe error message that explains the reason for the exception.
innerException
ExceptionThe 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
stringType identifier.
message
stringThe error message that explains the reason for the exception.
innerException
ExceptionThe 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.
public override string Message { get; }
Property Value
MessageNumber
Gets the message number for the defined message type.
public int MessageNumber { get; }
Property Value
Methods
Translate(CultureInfo)
Translates a text.
public string Translate(CultureInfo culture)
Parameters
culture
CultureInfoCulture the text is translated to.
Returns
- string
A translated text.