ErrorEventArgs.cs 579 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // System.IO.ErrorEventArgs.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. using System;
  10. namespace System.IO {
  11. public class ErrorEventArgs : EventArgs {
  12. #region Fields
  13. Exception exception;
  14. #endregion // Fields
  15. #region Constructors
  16. public ErrorEventArgs (Exception exception)
  17. {
  18. this.exception = exception;
  19. }
  20. #endregion // Constructors
  21. #region Methods
  22. public virtual Exception GetException ()
  23. {
  24. return exception;
  25. }
  26. #endregion // Methods
  27. }
  28. }