diff --git a/ProxyForge/Encoding/ProxyEncodeException.cs b/ProxyForge/Encoding/ProxyEncodeException.cs new file mode 100644 index 0000000..1cb691b --- /dev/null +++ b/ProxyForge/Encoding/ProxyEncodeException.cs @@ -0,0 +1,17 @@ +namespace ProxyForge.Encoding; + +public enum ProxyEncodeFailure +{ + FFmpegUnavailable, + SourceUnavailable, + NoFrames, + UnusableSize, + Transparent, + FFmpegFailed, + NoOutput, +} + +internal sealed class ProxyEncodeException(ProxyEncodeFailure failure, string message) : Exception(message) +{ + public ProxyEncodeFailure Failure { get; } = failure; +}