forked from pgstath/Sharp.Xmpp
-
Notifications
You must be signed in to change notification settings - Fork 2
/
XmppDisconnectionException.cs
57 lines (53 loc) · 2.12 KB
/
XmppDisconnectionException.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
47
48
49
50
51
52
53
54
55
56
57
using System;
using System.Runtime.Serialization;
namespace Sharp.Xmpp
{
/// <summary>
/// The exception that is thrown when a generic XMPP error condition has been encountered.
/// </summary>
[Serializable]
public class XmppDisconnectionException : Exception
{
/// <summary>
/// Initializes a new instance of the XmppException class
/// </summary>
public XmppDisconnectionException()
: base()
{
}
/// <summary>
/// Initializes a new instance of the XmppException class with its message
/// string set to <paramref name="message"/>.
/// </summary>
/// <param name="message">A description of the error. The content of message is intended
/// to be understood by humans.</param>
public XmppDisconnectionException(string message)
: base(message)
{
}
/// <summary>
/// Initializes a new instance of the XmppException class with its message
/// string set to <paramref name="message"/> and a reference to the inner exception that
/// is the cause of this exception.
/// </summary>
/// <param name="message">A description of the error. The content of message is intended
/// to be understood by humans.</param>
/// <param name="inner">The exception that is the cause of the current exception.</param>
public XmppDisconnectionException(string message, Exception inner)
: base(message, inner)
{
}
/// <summary>
/// Initializes a new instance of the XmppException class with the specified
/// serialization and context information.
/// </summary>
/// <param name="info">An object that holds the serialized object data about the exception
/// being thrown. </param>
/// <param name="context">An object that contains contextual information about the source
/// or destination. </param>
protected XmppDisconnectionException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}