SafeFileWritingInterruptedException.cs 1.1 KB

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Wayne.Lib.IO
  5. {
  6. /// <summary>
  7. /// Unit testing exception. Thrown when the processing was interrupted because of a deliberate
  8. /// interruption of the file writing for unit testing purposes.
  9. /// </summary>
  10. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2237:MarkISerializableTypesWithSerializable")]
  11. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors")]
  12. public class SafeFileWritingInterruptedException : Exception
  13. {
  14. /// <summary>
  15. /// Constructor
  16. /// </summary>
  17. public SafeFileWritingInterruptedException() { }
  18. /// <summary>
  19. /// Constructor
  20. /// </summary>
  21. public SafeFileWritingInterruptedException(string message) : base(message) { }
  22. /// <summary>
  23. /// Constructor
  24. /// </summary>
  25. public SafeFileWritingInterruptedException(string message, Exception inner) : base(message, inner) { }
  26. }
  27. }