-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathexceptions.py
More file actions
47 lines (31 loc) · 1.25 KB
/
exceptions.py
File metadata and controls
47 lines (31 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from __future__ import annotations as _annotations
from ..errors import FFmpegioError
class FiltergraphConversionError(FFmpegioError): ...
class FilterOperatorTypeError(TypeError, FFmpegioError):
def __init__(self, other) -> None:
super().__init__(
f"invalid filtergraph operation with an incompatible object of type {type(other)}"
)
class FiltergraphMismatchError(TypeError, FFmpegioError):
def __init__(self, n, m) -> None:
super().__init__(
f"cannot append mismatched filtergraphs: the first has {n} input "
f"while the second has {m} outputs available."
)
class FiltergraphInvalidIndex(TypeError, FFmpegioError):
pass
class FiltergraphInvalidLabel(TypeError, FFmpegioError):
pass
class FiltergraphInvalidExpression(TypeError, FFmpegioError):
pass
class FiltergraphPadNotFoundError(FFmpegioError):
...
# def __init__(self, type, index) -> None:
# target = (
# f"pad {index}"
# if isinstance(index, tuple)
# else f"label {index}" if isinstance(index, str) else f"filter {index}"
# )
# super().__init__(f"cannot find {type} pad at {target}")
class FiltergrapDuplicatehPadFoundError(FFmpegioError):
...