FFmpeg functions will return standard error codes sometimes. They are currently being raised as AVError, but perhaps they should be OSError instead.
Options:
- Leave them as
AVError.
- Raise
OSError when the codes are known to errno module. I vaguely like this one best, even though it likely breaks more code.
- Make a new
AVOSError which extends from AVError and OSError, and raise that. This would still let you catch them separately, but old code wouldn't break (although new code would have to do them in the right order).
FFmpeg functions will return standard error codes sometimes. They are currently being raised as AVError, but perhaps they should be OSError instead.
Options:
AVError.OSErrorwhen the codes are known toerrnomodule. I vaguely like this one best, even though it likely breaks more code.AVOSErrorwhich extends fromAVErrorandOSError, and raise that. This would still let you catch them separately, but old code wouldn't break (although new code would have to do them in the right order).