Table of Contents

Class ConfigurationFileFormatException

Namespace
Loehnert.Lisrt.Modules.Configuration.Manager
Assembly
Loehnert.Lisrt.Modules.dll

A localizable FileFormatException specified for ModuleConfiguration file (See: XmlConfigurationManager).

[Serializable]
[Export(typeof(ITranslatableException))]
public class ConfigurationFileFormatException : FileFormatException, _Exception, ISerializable, ITranslatableException, ITranslatableText, IHasMessageNumber
Inheritance
ConfigurationFileFormatException
Implements
Inherited Members
Extension Methods

Constructors

ConfigurationFileFormatException()

Initializes a new instance of the ConfigurationFileFormatException class.

public ConfigurationFileFormatException()

Remarks

Without parameters for exporting.

ConfigurationFileFormatException(FileFormatException)

Initializes a new instance of the ConfigurationFileFormatException class.

public ConfigurationFileFormatException(FileFormatException fileFormatException)

Parameters

fileFormatException FileFormatException

FileFormatException as inner exception.

ConfigurationFileFormatException(string)

Initializes a new instance of the ConfigurationFileFormatException class.

public ConfigurationFileFormatException(string path)

Parameters

path string

Path of configuration file.

ConfigurationFileFormatException(string, string)

Initializes a new instance of the ConfigurationFileFormatException class.

public ConfigurationFileFormatException(string path, string additionalInfo)

Parameters

path string

Path of configuration file.

additionalInfo string

Additional information.

Properties

Message

Gets the localized exception message.

public override string Message { get; }

Property Value

string

MessageNumber

Gets the defined MessageNumber.

public int MessageNumber { get; }

Property Value

int

Remarks

Equals with a ID.

Path

Gets the path to the configuration.

public string Path { get; }

Property Value

string

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.