Class FFmpegException
Represents errors that occur during FFmpeg operations.
Inheritance
Implements
Inherited Members
Namespace: FFmpeg.Exceptions
Assembly: FFmpeg.dll
Syntax
public class FFmpegException : Exception, ISerializable
Constructors
View SourceFFmpegException(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. |
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. |
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 SourceErrorCode
Gets the FFmpeg error code.
Declaration
public int ErrorCode { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
View SourceThrowIfError(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. |