internal IdleErrorEventArgs(Exception exception, ImapClient client)
 {
     exception.ThrowIfNull("exception");
     client.ThrowIfNull("client");
     Exception = exception;
     Client = client;
 }
Example #2
0
 public ErrorEventArgs(System.Exception e)
 {
     e.ThrowIfNull <System.Exception>("e");
     this.Exception = e;
 }
 /// <summary>
 /// Initializes a new instance of the ErrorEventArgs class.
 /// </summary>
 /// <param name="e">The exception that causes the error event.</param>
 /// <exception cref="ArgumentNullException">The e parameter is null.</exception>
 public ErrorEventArgs(Exception e)
 {
     e.ThrowIfNull("e");
     Exception = e;
 }
Example #4
0
        public ExceptionCaughtEventArgs(Exception ex, CrashInformation crashInformation)
        {
            ex.ThrowIfNull("ex");
            crashInformation.ThrowIfNull("crashInformation");

            Exception = ex;
            CrashInformation = crashInformation;
        }