Module modules.telemetry.errors

Expand source code
class MissionNotFoundError(FileNotFoundError):
    """Raised when the desired mission is not found."""

    def __init__(self, mission_name: str):
        self.mission_name = mission_name
        self.message = f"The mission recording '{mission_name}' does not exist."
        super().__init__(self.message)


class AlreadyRecordingError(Exception):
    """Raised if the telemetry process is already recording when instructed to record."""

    def __init__(self, message: str = "Recording is already in progress."):
        self.message: str = message
        super().__init__(self.message)


class ReplayPlaybackError(Exception):
    """Raised if the telemetry process replay system is active when instructed to record or recording."""

    def __init__(self, message: str = "Not recording when replay system is active."):
        self.message: str = message
        super().__init__(self.message)

Classes

class AlreadyRecordingError (message: str = 'Recording is already in progress.')

Raised if the telemetry process is already recording when instructed to record.

Expand source code
class AlreadyRecordingError(Exception):
    """Raised if the telemetry process is already recording when instructed to record."""

    def __init__(self, message: str = "Recording is already in progress."):
        self.message: str = message
        super().__init__(self.message)

Ancestors

  • builtins.Exception
  • builtins.BaseException
class MissionNotFoundError (mission_name: str)

Raised when the desired mission is not found.

Expand source code
class MissionNotFoundError(FileNotFoundError):
    """Raised when the desired mission is not found."""

    def __init__(self, mission_name: str):
        self.mission_name = mission_name
        self.message = f"The mission recording '{mission_name}' does not exist."
        super().__init__(self.message)

Ancestors

  • builtins.FileNotFoundError
  • builtins.OSError
  • builtins.Exception
  • builtins.BaseException
class ReplayPlaybackError (message: str = 'Not recording when replay system is active.')

Raised if the telemetry process replay system is active when instructed to record or recording.

Expand source code
class ReplayPlaybackError(Exception):
    """Raised if the telemetry process replay system is active when instructed to record or recording."""

    def __init__(self, message: str = "Not recording when replay system is active."):
        self.message: str = message
        super().__init__(self.message)

Ancestors

  • builtins.Exception
  • builtins.BaseException