using System; using System.Runtime.Serialization; namespace MyDownloader.App.SingleInstancing { /// /// Represents errors occured while trying to enforce single application instancing. /// [Serializable()] public class SingleInstancingException : Exception { #region Construction / Destruction /// /// Instantiates a new SingleInstancingException object. /// public SingleInstancingException() { } /// /// Instantiates a new SingleInstancingException object. /// /// The message that describes the error. public SingleInstancingException(string message) : base(message) { } /// /// Instantiates a new SingleInstancingException object. /// /// The message that describes the error. /// The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. public SingleInstancingException(string message, Exception inner) : base(message, inner) { } /// /// Instantiates a new SingleInstancingException object with serialized data. /// /// The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. /// The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. protected SingleInstancingException(SerializationInfo info, StreamingContext context) : base(info, context) { } #endregion } }