CorruptedFileException.cs 815 B

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