-
Notifications
You must be signed in to change notification settings - Fork 111
/
IdleErrorEventArgs.cs
38 lines (35 loc) · 1.03 KB
/
IdleErrorEventArgs.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
using System;
namespace S22.Imap {
/// <summary>
/// Provides data for IMAP idle error events.
/// </summary>
public class IdleErrorEventArgs : EventArgs {
/// <summary>
/// Initializes a new instance of the IdleErrorEventArgs class.
/// </summary>
/// <param name="exception">The exception that causes the event.</param>
/// <param name="client">The instance of the ImapClient class that raised the event.</param>
/// <exception cref="ArgumentNullException">The exception parameter or the client parameter
/// is null.</exception>
internal IdleErrorEventArgs(Exception exception, ImapClient client) {
exception.ThrowIfNull("exception");
client.ThrowIfNull("client");
Exception = exception;
Client = client;
}
/// <summary>
/// The exception that caused the error event.
/// </summary>
public Exception Exception {
get;
private set;
}
/// <summary>
/// The instance of the ImapClient class that raised the event.
/// </summary>
public ImapClient Client {
get;
private set;
}
}
}