Class NotInitializedException
Represents a localizable System.InvalidOperationException specified for a not initialized ILisrtModule. IInitializable
Inheritance
Implements
Inherited Members
Namespace: Loehnert.Lisrt.Modules
Assembly: Loehnert.Lisrt.Modules.dll
Syntax
[Serializable]
[Export(typeof(ITranslatableException))]
public class NotInitializedException : InvalidOperationException, ISerializable, _Exception, ITranslatableException, ITranslatableText, IHasMessageNumber
Constructors
NotInitializedException()
Initializes a new instance of the NotInitializedException class.
Declaration
public NotInitializedException()
Remarks
Without parameters for export.
NotInitializedException(ILisrtModule)
Initializes a new instance of the NotInitializedException class.
Declaration
public NotInitializedException(ILisrtModule module)
Parameters
Type | Name | Description |
---|---|---|
ILisrtModule | module | Not initialized module. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when |
NotInitializedException(SerializationInfo, StreamingContext)
Initializes a new instance of the NotInitializedException class with serialized data.
Declaration
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
protected NotInitializedException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The object that holds the serialized object data. |
System.Runtime.Serialization.StreamingContext | context | The contextual information about the source or destination. |
Properties
FullModuleName
Gets the LisRT module.
Declaration
public string FullModuleName { get; }
Property Value
Type | Description |
---|---|
String |
Message
Gets the localized exception message.
Declaration
public override string Message { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
MessageNumber
Gets the message number.
Declaration
public int MessageNumber { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
GetObjectData(SerializationInfo, StreamingContext)
Sets the System.Runtime.Serialization.SerializationInfo with information about the exception.
Declaration
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(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. |
Overrides
Translate(CultureInfo)
Translates the text.
Declaration
public string Translate(CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | culture | Culture for the returning message. |
Returns
Type | Description |
---|---|
String | The translated message text. |