2016-11-11 19:55:12 +00:00
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace SocketHttpListener
|
|
|
|
{
|
2019-01-13 19:27:29 +00:00
|
|
|
/// <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
|
2016-11-11 19:55:12 +00:00
|
|
|
|
2019-01-13 19:27:29 +00:00
|
|
|
private string _message;
|
2016-11-11 19:55:12 +00:00
|
|
|
|
2019-01-13 19:27:29 +00:00
|
|
|
#endregion
|
2016-11-11 19:55:12 +00:00
|
|
|
|
2019-01-13 19:27:29 +00:00
|
|
|
#region Internal Constructors
|
2016-11-11 19:55:12 +00:00
|
|
|
|
2019-01-13 19:27:29 +00:00
|
|
|
internal ErrorEventArgs(string message)
|
|
|
|
{
|
|
|
|
_message = message;
|
|
|
|
}
|
2016-11-11 19:55:12 +00:00
|
|
|
|
2019-01-13 19:27:29 +00:00
|
|
|
#endregion
|
2016-11-11 19:55:12 +00:00
|
|
|
|
2019-01-13 19:27:29 +00:00
|
|
|
#region Public Properties
|
2016-11-11 19:55:12 +00:00
|
|
|
|
2019-01-13 19:27:29 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets the error message.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>
|
|
|
|
/// A <see cref="string"/> that represents the error message.
|
|
|
|
/// </value>
|
2019-01-13 20:31:14 +00:00
|
|
|
public string Message => _message;
|
2016-11-11 19:55:12 +00:00
|
|
|
|
2019-01-13 19:27:29 +00:00
|
|
|
#endregion
|
|
|
|
}
|
2016-11-11 19:55:12 +00:00
|
|
|
}
|