CorruptedFileException.cs 713 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. namespace PixiEditor.Exceptions
  3. {
  4. [Serializable]
  5. public class CorruptedFileException : Exception
  6. {
  7. public CorruptedFileException()
  8. : base("Selected file is invalid or corrupted.")
  9. {
  10. }
  11. public CorruptedFileException(string message)
  12. : base(message)
  13. {
  14. }
  15. public CorruptedFileException(string message, Exception inner)
  16. : base(message, inner)
  17. {
  18. }
  19. protected CorruptedFileException(
  20. System.Runtime.Serialization.SerializationInfo info,
  21. System.Runtime.Serialization.StreamingContext context)
  22. : base(info, context)
  23. {
  24. }
  25. }
  26. }