using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SuperSocket.Common { /// /// EventArgs for error and exception /// public class ErrorEventArgs : EventArgs { /// /// Gets the exception. /// public Exception Exception { get; private set; } /// /// Initializes a new instance of the class. /// /// The message. public ErrorEventArgs(string message) { Exception = new Exception(message); } /// /// Initializes a new instance of the class. /// /// The exception. public ErrorEventArgs(Exception exception) { Exception = exception; } } }