forked from smiley22/S22.Xmpp
-
Notifications
You must be signed in to change notification settings - Fork 51
/
XmppExceptions.cs
46 lines (42 loc) · 1.96 KB
/
XmppExceptions.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 Sharp.Xmpp
{
/// <summary>
/// The exception that is thrown when a generic XMPP error condition has been encountered.
/// </summary>
[Serializable()]
public class XmppException : Exception
{
/// <summary>
/// Initializes a new instance of the XmppException class
/// </summary>
public XmppException() : 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 XmppException(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 XmppException(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 XmppException(SerializationInfo info, StreamingContext context)
: base(info, context) { }
}
}