-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathExceptions.py
24 lines (20 loc) · 873 Bytes
/
Exceptions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class InvalidOutputFPS(Exception):
def __init__(self,message="The given output FPS value is invalid!"):
self.message = message
super().__init__(self.message)
class InvalidResolution(Exception):
def __init__(self,message="The given output resolution value is invalid!"):
self.message = message
super().__init__(self.message)
class VideoReadError(Exception):
def __init__(self,message="Unable to read video file!"):
self.message = message
super().__init__(self.message)
class InvalidCustomWeighting(Exception):
def __init__(self,message="Invalid custom weighting function!"):
self.message = message
super().__init__(self.message)
class InvalidBlendMode(Exception):
def __init__(self,message="Invalid blending mode!"):
self.message = message
super().__init__(self.message)