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
moduleILisrtModuleNot initialized module.
Exceptions
- ArgumentNullException
Thrown when
moduleis null.- ArgumentException
Thrown when
module.Name 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
infoSerializationInfoThe object that holds the serialized object data.
contextStreamingContextThe 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
infoSerializationInfoThe System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContextThe System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.
Translate(CultureInfo)
Translates the text.
public string Translate(CultureInfo culture)
Parameters
cultureCultureInfoCulture for the returning message.
Returns
- string
The translated message text.