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.
bazarr/libs/pysubs2/exceptions.py

23 lines
633 B

6 years ago
class Pysubs2Error(Exception):
"""Base class for pysubs2 exceptions."""
6 years ago
class UnknownFPSError(Pysubs2Error):
"""Framerate was not specified and couldn't be inferred otherwise."""
6 years ago
class UnknownFileExtensionError(Pysubs2Error):
"""File extension does not pertain to any known subtitle format."""
6 years ago
class UnknownFormatIdentifierError(Pysubs2Error):
"""Unknown subtitle format identifier (ie. string like ``"srt"``)."""
6 years ago
class FormatAutodetectionError(Pysubs2Error):
"""Subtitle format is ambiguous or unknown."""
4 years ago
4 years ago
class ContentNotUsable(Pysubs2Error):
"""Current content not usable for specified format"""