FFMpegCore/FFMpegCore/FFMPEG/Exceptions/FFMpegException.cs
Malte Rosenbjerg 7b2a419c10 Cleanup
Former-commit-id: 46bc75c6d1
2020-02-27 21:12:48 +01:00

29 lines
No EOL
744 B
C#

using System;
using System.Text;
namespace FFMpegCore.FFMPEG.Exceptions
{
public enum FFMpegExceptionType
{
Dependency,
Conversion,
File,
Operation,
Process
}
public class FFMpegException : Exception
{
public FFMpegException(FFMpegExceptionType type, StringBuilder sb): this(type, sb.ToString(), null) { }
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; }
}
}