-
Notifications
You must be signed in to change notification settings - Fork 2
/
ProxyException.cs
46 lines (39 loc) · 1.34 KB
/
ProxyException.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
45
46
using System;
using System.Runtime.Serialization;
namespace KeePassNatMsgProxy
{
/// <summary>
/// This a generic exception class used by ProxyBase and all descendants.
/// </summary>
[Serializable]
public class ProxyException : Exception
{
/// <summary>
/// Initialize a new instance of ProxyException.
/// </summary>
public ProxyException() : this("")
{
}
/// <summary>
/// Initialize a new instance of ProxyException.
/// </summary>
/// <param name="message">The message explaining the exception.</param>
public ProxyException(string message) : this(message, null)
{
}
/// <summary>
/// Initialize a new instance of ProxyException.
/// </summary>
/// <param name="message">The message explaining the exception.</param>
/// <param name="innerException">Reference to the original exception, which is covered by this new instance.</param>
public ProxyException(string message, Exception innerException) : base(message, innerException)
{
}
/// <summary>
/// Method implementation forced by inheritance.
/// </summary>
protected ProxyException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
}