1class Pysubs2Error(Exception): 2 """Base class for pysubs2 exceptions.""" 3 4 5class UnknownFPSError(Pysubs2Error): 6 """Framerate was not specified and couldn't be inferred otherwise.""" 7 8 9class UnknownFileExtensionError(Pysubs2Error): 10 """File extension does not pertain to any known subtitle format.""" 11 12 13class UnknownFormatIdentifierError(Pysubs2Error): 14 """Unknown subtitle format identifier (ie. string like ``"srt"``).""" 15 16 17class FormatAutodetectionError(Pysubs2Error): 18 """Subtitle format is ambiguous or unknown.""" 19 20 21class ContentNotUsable(Pysubs2Error): 22 """Current content not usable for specified format""" 23