OpenCvSharpException.cs 885 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System.Runtime.Serialization;
  2. namespace OpenCvSharp;
  3. /// <summary>
  4. /// The exception that is thrown by OpenCvSharp.
  5. /// </summary>
  6. [Serializable]
  7. public class OpenCvSharpException : Exception
  8. {
  9. /// <inheritdoc />
  10. public OpenCvSharpException()
  11. {
  12. }
  13. /// <inheritdoc />
  14. /// <param name="message"></param>
  15. public OpenCvSharpException(string message)
  16. : base(message)
  17. {
  18. }
  19. /// <inheritdoc />
  20. /// <param name="message"></param>
  21. /// <param name="innerException"></param>
  22. public OpenCvSharpException(string message, Exception innerException)
  23. : base(message, innerException)
  24. {
  25. }
  26. /// <inheritdoc />
  27. /// <param name="info"></param>
  28. /// <param name="context"></param>
  29. protected OpenCvSharpException(SerializationInfo info, StreamingContext context)
  30. : base(info, context)
  31. {
  32. }
  33. }