Module torpido.exceptions.custom

All custom exceptions

Expand source code
"""
All custom exceptions
"""


class AudioStreamMissingException(Exception):
    """
    When there is no audio in some input video files
    Exception will be raised along with the below message
    """
    cause = "There is not audio in the video file"


class FFmpegProcessException(Exception):
    """
    When the subprocess did not able to do the rendering or
    some other FFmpeg error, this exception would be raised
    """
    cause = "FFmpeg has some problem processing"


class RankingOfFeatureMissing(Exception):
    """
    When due to some issue ranking for some feature(s) was
    not created, then exception will be raised.
    """
    cause = "Rank for some feature in missing"


class EastModelEnvironmentMissing(Exception):
    """
    When the model path is read and the environment variable
    is missing or not yet set this error will be raised
    """
    cause = "EAST_MODEL environment variable is missing or incorrect"

Classes

class AudioStreamMissingException (*args, **kwargs)

When there is no audio in some input video files Exception will be raised along with the below message

Expand source code
class AudioStreamMissingException(Exception):
    """
    When there is no audio in some input video files
    Exception will be raised along with the below message
    """
    cause = "There is not audio in the video file"

Ancestors

  • builtins.Exception
  • builtins.BaseException

Class variables

var cause
class EastModelEnvironmentMissing (*args, **kwargs)

When the model path is read and the environment variable is missing or not yet set this error will be raised

Expand source code
class EastModelEnvironmentMissing(Exception):
    """
    When the model path is read and the environment variable
    is missing or not yet set this error will be raised
    """
    cause = "EAST_MODEL environment variable is missing or incorrect"

Ancestors

  • builtins.Exception
  • builtins.BaseException

Class variables

var cause
class FFmpegProcessException (*args, **kwargs)

When the subprocess did not able to do the rendering or some other FFmpeg error, this exception would be raised

Expand source code
class FFmpegProcessException(Exception):
    """
    When the subprocess did not able to do the rendering or
    some other FFmpeg error, this exception would be raised
    """
    cause = "FFmpeg has some problem processing"

Ancestors

  • builtins.Exception
  • builtins.BaseException

Class variables

var cause
class RankingOfFeatureMissing (*args, **kwargs)

When due to some issue ranking for some feature(s) was not created, then exception will be raised.

Expand source code
class RankingOfFeatureMissing(Exception):
    """
    When due to some issue ranking for some feature(s) was
    not created, then exception will be raised.
    """
    cause = "Rank for some feature in missing"

Ancestors

  • builtins.Exception
  • builtins.BaseException

Class variables

var cause