Show / Hide Table of Contents

Class FFmpegException

Represents errors that occur during FFmpeg operations.

Inheritance
object
Exception
FFmpegException
BitStreamFilterNotFoundException
BufferTooSmallException
DecoderNotFoundException
OptionNotFoundException
TryAgainException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.ToString()
Exception.GetType()
Exception.TargetSite
Exception.Message
Exception.Data
Exception.InnerException
Exception.HelpLink
Exception.Source
Exception.HResult
Exception.StackTrace
Exception.SerializeObjectState
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: FFmpeg.Exceptions
Assembly: FFmpeg.dll
Syntax
public class FFmpegException : Exception, ISerializable

Constructors

View Source

FFmpegException(int)

Initializes a new instance of the FFmpegException class with a specified error code.

Declaration
public FFmpegException(int error)
Parameters
Type Name Description
int error

The FFmpeg error code.

View Source

FFmpegException(int, string)

Initializes a new instance of the FFmpegException class with a specified error code and error message.

Declaration
public FFmpegException(int error, string message)
Parameters
Type Name Description
int error

The FFmpeg error code.

string message

The message that describes the error.

View Source

FFmpegException(int, string, Exception)

Initializes a new instance of the FFmpegException class with a specified error code, error message, and a reference to the inner exception that is the cause of this exception.

Declaration
public FFmpegException(int error, string message, Exception innerException)
Parameters
Type Name Description
int error

The FFmpeg error code.

string message

The message that describes the error.

Exception innerException

The exception that is the cause of the current exception.

Properties

View Source

ErrorCode

Gets the FFmpeg error code.

Declaration
public int ErrorCode { get; }
Property Value
Type Description
int

Methods

View Source

ThrowIfError(int)

Throws an FFmpegException if the specified error code is negative.

Declaration
public static void ThrowIfError(int error)
Parameters
Type Name Description
int error

The FFmpeg error code.

Exceptions
Type Condition
FFmpegException

Thrown if the error code is negative.

OutOfMemoryException

Thrown if the error code is ENOMEM.

IOException

Thrown if the error code is EPIPE.

ArgumentException

Thrown if the error code is EINVAL or E2BIG.

ArgumentOutOfRangeException

Thrown if the error code is ERANGE.

Implements

ISerializable
  • View Source
In this article
Back to top Generated by DocFX