-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexceptions.py
More file actions
72 lines (38 loc) · 1.18 KB
/
exceptions.py
File metadata and controls
72 lines (38 loc) · 1.18 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# FFmpeg
class FFmpegBinaryNotFound(FileNotFoundError):
pass
class FFmpegProcessException(Exception):
pass
class FFmpegInputNotFoundException(FileNotFoundError):
pass
class FFmpegOutputAlreadyExistsException(FileExistsError):
pass
# FFprobe
class FFprobeBinaryNotFound(FileNotFoundError):
pass
class FFprobeProcessException(Exception):
pass
class FFprobeTerminatedException(Exception):
pass
# FFprobeMetadataFilter
class UnknownFilterSelector(ValueError):
pass
class UnknownMetadataParameter(KeyError):
pass
class WrongConditionType(TypeError):
pass
class UnknownOperator(ValueError):
pass
class ConditionPairProcessingException(Exception):
def __init__(self, value_left, operator, value_right, *args, **kwargs):
msg = 'value_left: {} of type {}, operator: {}, value_right {} of type {}'.format(
value_left, type(value_left), operator, value_right, type(value_right)
)
super().__init__(msg, *args, **kwargs)
class UnknownStreamType(ValueError):
pass
class StreamIndexOutOfRange(ValueError):
pass
# FFprobeMetadataCollector
class MetadataCollectionException(Exception):
pass