mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 10:05:44 +00:00
26 lines
No EOL
607 B
C#
26 lines
No EOL
607 B
C#
using System;
|
|
|
|
namespace FFMpegCore.Exceptions
|
|
{
|
|
public enum FFMpegExceptionType
|
|
{
|
|
Dependency,
|
|
Conversion,
|
|
File,
|
|
Operation,
|
|
Process
|
|
}
|
|
|
|
public class FFMpegException : Exception
|
|
{
|
|
public FFMpegException(FFMpegExceptionType type, string message): this(type, message, null) { }
|
|
|
|
public FFMpegException(FFMpegExceptionType type, string? message = null, Exception? innerException = null)
|
|
: base(message, innerException)
|
|
{
|
|
Type = type;
|
|
}
|
|
|
|
public FFMpegExceptionType Type { get; }
|
|
}
|
|
} |