"""LLUAV SDK exceptions."""


class LLUAVError(Exception):
    """Base exception for LLUAV SDK."""
    pass


class LLUAVConnectionError(LLUAVError):
    """Raised when connection to the drone fails."""
    pass


class LLUAVCommandError(LLUAVError):
    """Raised when a command returns an error from the drone."""
    def __init__(self, message, ret_code=None, response=None):
        super().__init__(message)
        self.ret_code = ret_code
        self.response = response
