mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 18:15:44 +00:00
29 lines
No EOL
744 B
C#
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; }
|
|
}
|
|
} |