FfmpegException.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. namespace MediaBrowser.Common
  3. {
  4. /// <summary>
  5. /// Represents errors that occur during interaction with FFmpeg.
  6. /// </summary>
  7. public class FfmpegException : Exception
  8. {
  9. /// <summary>
  10. /// Initializes a new instance of the <see cref="FfmpegException"/> class.
  11. /// </summary>
  12. public FfmpegException()
  13. {
  14. }
  15. /// <summary>
  16. /// Initializes a new instance of the <see cref="FfmpegException"/> class with a specified error message.
  17. /// </summary>
  18. /// <param name="message">The message that describes the error.</param>
  19. public FfmpegException(string message) : base(message)
  20. {
  21. }
  22. /// <summary>
  23. /// Initializes a new instance of the <see cref="FfmpegException"/> class with a specified error message and a
  24. /// reference to the inner exception that is the cause of this exception.
  25. /// </summary>
  26. /// <param name="message">The error message that explains the reason for the exception.</param>
  27. /// <param name="innerException">
  28. /// The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if
  29. /// no inner exception is specified.
  30. /// </param>
  31. public FfmpegException(string message, Exception innerException)
  32. : base(message, innerException)
  33. {
  34. }
  35. }
  36. }