Skip to content

Exceptions

MKVInfoError

MKVInfoError(message: str)

Bases: Exception

Base exception for the mkvinfo library.

Source code in src/mkvinfo/_errors.py
def __init__(self, message: str) -> None:
    self.message = message
    super().__init__(message)

__module__ class-attribute instance-attribute

__module__ = 'mkvinfo'

message instance-attribute

message = message

__init_subclass__

__init_subclass__() -> None
Source code in src/mkvinfo/_errors.py
def __init_subclass__(cls) -> None:
    # Ensure subclasses also appear as part of the public 'mkvinfo' module
    # in tracebacks, instead of the internal implementation module.
    cls.__module__ = "mkvinfo"

ExecutableNotFoundError

ExecutableNotFoundError(message: str)

Bases: MKVInfoError

Raised when the mkvmerge executable is not found.

Source code in src/mkvinfo/_errors.py
def __init__(self, message: str) -> None:
    self.message = message
    super().__init__(message)