def METHOD_NAME(self) -> None:
    try:
        alarms = self._dobot.get_alarms()
    except DobotApiException as e:
        raise DobotApiException("Failed to get alarms.") from e
    if alarms:
        raise DobotApiException(f"Alarm(s): {','.join([alarm.name for alarm in alarms])}.")