mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-10 17:13:35 +08:00
22 lines
633 B
Python
22 lines
633 B
Python
class Pysubs2Error(Exception):
|
|
"""Base class for pysubs2 exceptions."""
|
|
|
|
|
|
class UnknownFPSError(Pysubs2Error):
|
|
"""Framerate was not specified and couldn't be inferred otherwise."""
|
|
|
|
|
|
class UnknownFileExtensionError(Pysubs2Error):
|
|
"""File extension does not pertain to any known subtitle format."""
|
|
|
|
|
|
class UnknownFormatIdentifierError(Pysubs2Error):
|
|
"""Unknown subtitle format identifier (ie. string like ``"srt"``)."""
|
|
|
|
|
|
class FormatAutodetectionError(Pysubs2Error):
|
|
"""Subtitle format is ambiguous or unknown."""
|
|
|
|
|
|
class ContentNotUsable(Pysubs2Error):
|
|
"""Current content not usable for specified format"""
|