Exceptions.cs 735 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace PaintDotNet.Camera
  7. {
  8. public class CameraException : Exception
  9. {
  10. /// <summary>
  11. /// 厂商
  12. /// </summary>
  13. public static string Vendor = "TUCSEN";
  14. /// <summary>
  15. /// 型号
  16. /// </summary>
  17. public static string Model = "MIchrome 5 Pro";
  18. }
  19. public class NotSupportException : CameraException
  20. {
  21. }
  22. public class NotSupportRotateException : NotSupportException
  23. {
  24. public int Rotate { get; private set; }
  25. public NotSupportRotateException(int value)
  26. {
  27. Rotate = value;
  28. }
  29. }
  30. }