ExceptionEventArgs.cs 845 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Renci.SshNet.Common
  6. {
  7. /// <summary>
  8. /// Provides data for the <see cref="ErrorOccured"/> event.
  9. /// </summary>
  10. public class ExceptionEventArgs : EventArgs
  11. {
  12. /// <summary>
  13. /// Gets the System.Exception that represents the error that occurred.
  14. /// </summary>
  15. public Exception Exception { get; private set; }
  16. /// <summary>
  17. /// Initializes a new instance of the <see cref="ExceptionEventArgs"/> class.
  18. /// </summary>
  19. /// <param name="exception">An System.Exception that represents the error that occurred.</param>
  20. public ExceptionEventArgs(Exception exception)
  21. {
  22. this.Exception = exception;
  23. }
  24. }
  25. }