UnitOfWorkFailedEventArgs.cs 688 B

123456789101112131415161718192021222324
  1. using System;
  2. namespace Abp.Domain.Uow
  3. {
  4. /// <summary>
  5. /// Used as event arguments on <see cref="IActiveUnitOfWork.Failed"/> event.
  6. /// </summary>
  7. public class UnitOfWorkFailedEventArgs : EventArgs
  8. {
  9. /// <summary>
  10. /// Exception that caused failure.
  11. /// </summary>
  12. public Exception Exception { get; private set; }
  13. /// <summary>
  14. /// Creates a new <see cref="UnitOfWorkFailedEventArgs"/> object.
  15. /// </summary>
  16. /// <param name="exception">Exception that caused failure</param>
  17. public UnitOfWorkFailedEventArgs(Exception exception)
  18. {
  19. Exception = exception;
  20. }
  21. }
  22. }