ExceptionEventArgs.cs 757 B

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