Skip to content

Module vodscrepe.errors

None

None

View Source
class Error(Exception):

    message: str

class InvalidVideoError(Error):

    def __init__(self, vod_id: str):

        message = f"Invalid Video: vods.co vod '{vod_id}' links to invalid video"

        super().__init__(message)

class InvalidPageError(Error):

    def __init__(self, *args):

        message = "Invalid Page: vods.co game '%s' does not have page '%i'" % args

        super().__init__(message)

Classes

Error

1
2
3
4
5
class Error(
    /,
    *args,
    **kwargs
)
View Source
class Error(Exception):

    message: str

Ancestors (in MRO)

  • builtins.Exception
  • builtins.BaseException

Descendants

  • vodscrepe.errors.InvalidVideoError
  • vodscrepe.errors.InvalidPageError

Class variables

1
args

Methods

with_traceback

1
2
3
def with_traceback(
    ...
)

Exception.with_traceback(tb) --

set self.traceback to tb and return self.

InvalidPageError

1
2
3
class InvalidPageError(
    *args
)
View Source
class InvalidPageError(Error):

    def __init__(self, *args):

        message = "Invalid Page: vods.co game '%s' does not have page '%i'" % args

        super().__init__(message)

Ancestors (in MRO)

  • vodscrepe.errors.Error
  • builtins.Exception
  • builtins.BaseException

Class variables

1
args

Methods

with_traceback

1
2
3
def with_traceback(
    ...
)

Exception.with_traceback(tb) --

set self.traceback to tb and return self.

InvalidVideoError

1
2
3
class InvalidVideoError(
    vod_id: str
)
View Source
class InvalidVideoError(Error):

    def __init__(self, vod_id: str):

        message = f"Invalid Video: vods.co vod '{vod_id}' links to invalid video"

        super().__init__(message)

Ancestors (in MRO)

  • vodscrepe.errors.Error
  • builtins.Exception
  • builtins.BaseException

Class variables

1
args

Methods

with_traceback

1
2
3
def with_traceback(
    ...
)

Exception.with_traceback(tb) --

set self.traceback to tb and return self.