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
FileFormatExceptionFileFormatException as inner exception.
ConfigurationFileFormatException(string)
Initializes a new instance of the ConfigurationFileFormatException class.
public ConfigurationFileFormatException(string path)
Parameters
path
stringPath of configuration file.
ConfigurationFileFormatException(string, string)
Initializes a new instance of the ConfigurationFileFormatException class.
public ConfigurationFileFormatException(string path, string additionalInfo)
Parameters
Properties
Message
Gets the localized exception message.
public override string Message { get; }
Property Value
MessageNumber
Gets the defined MessageNumber.
public int MessageNumber { get; }
Property Value
Remarks
Equals with a ID.
Path
Gets the path to the configuration.
public string Path { 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.