BackgroundJobException.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using System.Runtime.Serialization;
  3. using JetBrains.Annotations;
  4. namespace Abp.BackgroundJobs
  5. {
  6. [Serializable]
  7. public class BackgroundJobException : AbpException
  8. {
  9. [CanBeNull]
  10. public BackgroundJobInfo BackgroundJob { get; set; }
  11. [CanBeNull]
  12. public object JobObject { get; set; }
  13. /// <summary>
  14. /// Creates a new <see cref="BackgroundJobException"/> object.
  15. /// </summary>
  16. public BackgroundJobException()
  17. {
  18. }
  19. /// <summary>
  20. /// Creates a new <see cref="BackgroundJobException"/> object.
  21. /// </summary>
  22. public BackgroundJobException(SerializationInfo serializationInfo, StreamingContext context)
  23. : base(serializationInfo, context)
  24. {
  25. }
  26. /// <summary>
  27. /// Creates a new <see cref="BackgroundJobException"/> object.
  28. /// </summary>
  29. /// <param name="message">Exception message</param>
  30. /// <param name="innerException">Inner exception</param>
  31. public BackgroundJobException(string message, Exception innerException)
  32. : base(message, innerException)
  33. {
  34. }
  35. }
  36. }