Class NotInitializedException
Represents a localizable InvalidOperationException specified for a not initialized ILisrtModule. IInitializable
[Serializable]
[Export(typeof(ITranslatableException))]
public class NotInitializedException : InvalidOperationException, ISerializable, _Exception, ITranslatableException, ITranslatableText, IHasMessageNumber
- Inheritance
-
NotInitializedException
- Implements
- Inherited Members
- Extension Methods
Constructors
NotInitializedException()
Initializes a new instance of the NotInitializedException class.
public NotInitializedException()
Remarks
Without parameters for export.
NotInitializedException(ILisrtModule)
Initializes a new instance of the NotInitializedException class.
public NotInitializedException(ILisrtModule module)
Parameters
module
ILisrtModuleNot initialized module.
Exceptions
- ArgumentNullException
Thrown when
module
is null.
NotInitializedException(SerializationInfo, StreamingContext)
Initializes a new instance of the NotInitializedException class with serialized data.
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
protected NotInitializedException(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe object that holds the serialized object data.
context
StreamingContextThe contextual information about the source or destination.
Properties
FullModuleName
Gets the LisRT module.
public string FullModuleName { get; }
Property Value
Message
Gets the localized exception message.
public override string Message { get; }
Property Value
MessageNumber
Gets the message number.
public int MessageNumber { get; }
Property Value
Methods
GetObjectData(SerializationInfo, StreamingContext)
Sets the System.Runtime.Serialization.SerializationInfo with information about the exception.
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.
context
StreamingContextThe System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.
Translate(CultureInfo)
Translates the text.
public string Translate(CultureInfo culture)
Parameters
culture
CultureInfoCulture for the returning message.
Returns
- string
The translated message text.