SafeFileWritingInterruptedException.cs 1.0 KB

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