ExceptionEventArgs.cs 749 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. namespace WatsonTcp
  2. {
  3. using System;
  4. /// <summary>
  5. /// Event arguments for when an exception is encountered.
  6. /// </summary>
  7. public class ExceptionEventArgs
  8. {
  9. #region Public-Members
  10. /// <summary>
  11. /// Exception.
  12. /// </summary>
  13. public Exception Exception { get; }
  14. #endregion
  15. #region Private-Members
  16. #endregion
  17. #region Constructors-and-Factories
  18. internal ExceptionEventArgs(Exception e)
  19. {
  20. if (e == null) throw new ArgumentNullException(nameof(e));
  21. Exception = e;
  22. }
  23. #endregion
  24. #region Public-Methods
  25. #endregion
  26. #region Private-Methods
  27. #endregion
  28. }
  29. }