FFMpegCore/FFMpegCore/FFMpeg/Exceptions/FFMpegException.cs
Malte Rosenbjerg fb2e1e00aa Init
2020-12-08 23:27:25 +01:00

29 lines
No EOL
745 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 = null, Exception? innerException = null, string ffmpegErrorOutput = "", string ffmpegOutput = "")
: base(message, innerException)
{
FfmpegOutput = ffmpegOutput;
FfmpegErrorOutput = ffmpegErrorOutput;
Type = type;
}
public FFMpegExceptionType Type { get; }
public string FfmpegOutput { get; }
public string FfmpegErrorOutput { get; }
}
}