How to use the pysubs2.exceptions.Pysubs2Error function in pysubs2

To help you get started, we’ve selected a few pysubs2 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tkarabela / pysubs2 / pysubs2 / exceptions.py View on Github external
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."""
github tkarabela / pysubs2 / pysubs2 / exceptions.py View on Github external
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."""
github tkarabela / pysubs2 / pysubs2 / exceptions.py View on Github external
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."""
github tkarabela / pysubs2 / pysubs2 / exceptions.py View on Github external
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."""