You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
442 B
32 lines
442 B
6 years ago
|
"""
|
||
|
Exception classes
|
||
|
"""
|
||
|
|
||
|
|
||
|
class Error(Exception):
|
||
|
"""
|
||
|
Pysrt's base exception
|
||
|
"""
|
||
|
pass
|
||
|
|
||
|
|
||
|
class InvalidTimeString(Error):
|
||
|
"""
|
||
|
Raised when parser fail on bad formated time strings
|
||
|
"""
|
||
|
pass
|
||
|
|
||
|
|
||
|
class InvalidItem(Error):
|
||
|
"""
|
||
|
Raised when parser fail to parse a sub title item
|
||
|
"""
|
||
|
pass
|
||
|
|
||
|
|
||
|
class InvalidIndex(InvalidItem):
|
||
|
"""
|
||
|
Raised when parser fail to parse a sub title index
|
||
|
"""
|
||
|
pass
|