Class LFileNotFoundException
- Namespace
- Loehnert.Lisrt.Messaging.Exceptions
- Assembly
- Loehnert.Lisrt.dll
A localizable FileNotFoundException.
[Serializable]
[Export(typeof(ITranslatableException))]
[SuppressMessage("Design", "RCS1194:Implement exception constructors.", Justification = "Other ctors make no sense with not translateable message.")]
public class LFileNotFoundException : FileNotFoundException, ISerializable, _Exception, ITranslatableException, ITranslatableText, IHasMessageNumber
- Inheritance
-
LFileNotFoundException
- Implements
- Inherited Members
- Extension Methods
Constructors
LFileNotFoundException()
Initializes a new instance of the LFileNotFoundException class.
public LFileNotFoundException()
LFileNotFoundException(FileNotFoundException)
Initializes a new instance of the LFileNotFoundException class.
public LFileNotFoundException(FileNotFoundException ex)
Parameters
exFileNotFoundExceptionThe FileNotFoundException instance.
LFileNotFoundException(SerializationInfo, StreamingContext)
Initializes a new instance of the LFileNotFoundException class with the specified serialization and context information.
protected LFileNotFoundException(SerializationInfo serializationInfo, StreamingContext streamingContext)
Parameters
serializationInfoSerializationInfoAn object that holds the serialized object data about the exception being thrown.
streamingContextStreamingContextAn object that contains contextual information about the source or destination.
Properties
Message
Gets the localized exception message.
public override string Message { get; }
Property Value
MessageNumber
Gets the defined MessageNumber. Equal with a ID.
public int MessageNumber { get; }
Property Value
Methods
Translate(CultureInfo)
Translates the Message.
public string Translate(CultureInfo culture)
Parameters
cultureCultureInfoCulture for the returning message.