aboutsummaryrefslogtreecommitdiff
path: root/SocketHttpListener/ErrorEventArgs.cs
blob: bf1d6fc95f8aac0ec3214d0598dd797f5f4489c1 (plain)
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;

namespace SocketHttpListener
{
  /// <summary>
  /// Contains the event data associated with a <see cref="WebSocket.OnError"/> event.
  /// </summary>
  /// <remarks>
  /// A <see cref="WebSocket.OnError"/> event occurs when the <see cref="WebSocket"/> gets an error.
  /// If you would like to get the error message, you should access the <see cref="Message"/>
  /// property.
  /// </remarks>
  public class ErrorEventArgs : EventArgs
  {
    #region Private Fields

    private string _message;

    #endregion

    #region Internal Constructors

    internal ErrorEventArgs (string message)
    {
      _message = message;
    }

    #endregion

    #region Public Properties

    /// <summary>
    /// Gets the error message.
    /// </summary>
    /// <value>
    /// A <see cref="string"/> that represents the error message.
    /// </value>
    public string Message {
      get {
        return _message;
      }
    }

    #endregion
  }
}