simplersble 0.14.1-dev50

The all-in-one Bluetooth library that makes it easy to add wireless connectivity to your projects.
Documentation
#pragma once

#include <stdexcept>
#include <string>

#include <simpledbuslegacy/base/Exceptions.h>

namespace SimpleBluezLegacy {

namespace Exception {

class BaseException : public std::exception {};

class ServiceNotFoundException : public BaseException {
  public:
    ServiceNotFoundException(const std::string& service);
    const char* what() const noexcept override;

  private:
    std::string _message;
};

class CharacteristicNotFoundException : public BaseException {
  public:
    CharacteristicNotFoundException(const std::string& characteristic);
    const char* what() const noexcept override;

  private:
    std::string _message;
};

class DescriptorNotFoundException : public BaseException {
  public:
    DescriptorNotFoundException(const std::string& descriptor);
    const char* what() const noexcept override;

  private:
    std::string _message;
};

}  // namespace Exception

}  // namespace SimpleBluezLegacy