diff --git a/websocket-sharp/ErrorEventArgs.cs b/websocket-sharp/ErrorEventArgs.cs index 7ecbe795..d72fb295 100644 --- a/websocket-sharp/ErrorEventArgs.cs +++ b/websocket-sharp/ErrorEventArgs.cs @@ -49,16 +49,21 @@ namespace WebSocketSharp #region Internal Constructors - internal ErrorEventArgs (string message, Exception exc = null) + internal ErrorEventArgs (string message) + : this (message, null) + { + } + + internal ErrorEventArgs (string message, Exception exception) { _message = message; - _exception = exc; + _exception = exception; } #endregion #region Public Properties - + /// /// Gets the error message. /// @@ -71,14 +76,17 @@ namespace WebSocketSharp } } - /// - /// Gets the exception. - /// - public Exception Exception { + /// + /// Gets the exception that caused the error. + /// + /// A instance that represents the cause of the error, + /// or if the error isn't due to an exception. + /// + public Exception Exception { get { return _exception; } - } + } #endregion }