dndm

dndm Mercurial Source Tree


Root/MyDownloader.App/SingleInstancing/SingleInstanceException.cs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System;
using System.Runtime.Serialization;
 
namespace MyDownloader.App.SingleInstancing
{
    /// <summary>
    /// Represents errors occured while trying to enforce single application instancing.
    /// </summary>
    [Serializable()]
    public class SingleInstancingException : Exception
    {
        #region Construction / Destruction
 
        /// <summary>
        /// Instantiates a new SingleInstancingException object.
        /// </summary>
        public SingleInstancingException() { }
 
        /// <summary>
        /// Instantiates a new SingleInstancingException object.
        /// </summary>
        /// <param name="message">The message that describes the error.</param>
        public SingleInstancingException(string message)
            : base(message) { }
 
        /// <summary>
        /// Instantiates a new SingleInstancingException object.
        /// </summary>
        /// <param name="message">The message that describes the error.</param>
        /// <param name="inner">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.</param>
        public SingleInstancingException(string message, Exception inner)
            : base(message, inner) { }
         
        /// <summary>
        /// Instantiates a new SingleInstancingException object with serialized data.
        /// </summary>
        /// <param name="info">The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.</param>
        /// <param name="context">The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.</param>
        protected SingleInstancingException(SerializationInfo info, StreamingContext context)
            : base(info, context) { }
 
        #endregion
    }
}
Source at commit 1dae03ea3242 created 11 years 10 months ago.
By Nathan Adams, Initial commit

Archive Download this file

Branches

Tags

Page rendered in 0.84213s using 11 queries.