Table of Contents

Class NotInitializedException

Namespace
Loehnert.Lisrt.Modules
Assembly
Loehnert.Lisrt.Modules.dll

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 ILisrtModule

Not 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 SerializationInfo

The object that holds the serialized object data.

context StreamingContext

The contextual information about the source or destination.

Properties

FullModuleName

Gets the LisRT module.

public string FullModuleName { get; }

Property Value

string

Message

Gets the localized exception message.

public override string Message { get; }

Property Value

string

MessageNumber

Gets the message number.

public int MessageNumber { get; }

Property Value

int

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 SerializationInfo

The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.

context StreamingContext

The 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 CultureInfo

Culture for the returning message.

Returns

string

The translated message text.