ExceptionData.cs 587 B

123456789101112131415161718192021222324
  1. using System;
  2. namespace Abp.Events.Bus.Exceptions
  3. {
  4. /// <summary>
  5. /// This type of events can be used to notify for an exception.
  6. /// </summary>
  7. public class ExceptionData : EventData
  8. {
  9. /// <summary>
  10. /// Exception object.
  11. /// </summary>
  12. public Exception Exception { get; private set; }
  13. /// <summary>
  14. /// Constructor.
  15. /// </summary>
  16. /// <param name="exception">Exception object</param>
  17. public ExceptionData(Exception exception)
  18. {
  19. Exception = exception;
  20. }
  21. }
  22. }