TinyB
0.5.1
TinyB - The Tiny Bluetooth LE library
Main Page
Classes
Files
File List
api
tinyb
BluetoothException.hpp
1
/*
2
* Author: Petre Eftime <petre.p.eftime@intel.com>
3
* Copyright (c) 2016 Intel Corporation.
4
*
5
* Permission is hereby granted, free of charge, to any person obtaining
6
* a copy of this software and associated documentation files (the
7
* "Software"), to deal in the Software without restriction, including
8
* without limitation the rights to use, copy, modify, merge, publish,
9
* distribute, sublicense, and/or sell copies of the Software, and to
10
* permit persons to whom the Software is furnished to do so, subject to
11
* the following conditions:
12
*
13
* The above copyright notice and this permission notice shall be
14
* included in all copies or substantial portions of the Software.
15
*
16
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
*/
24
25
#pragma once
26
#include <stdexcept>
27
#include <iostream>
28
29
using namespace
tinyb
;
30
31
class
tinyb::BluetoothException
:
public
std::runtime_error {
32
33
public
:
34
explicit
BluetoothException
(
const
std::string &msg): std::runtime_error(msg) {
35
}
36
37
explicit
BluetoothException
(
const
char
*msg): std::runtime_error(msg) {
38
}
39
40
virtual
~
BluetoothException
()
throw
() {
41
}
42
43
virtual
const
char
* what()
const
throw
() {
44
return
std::runtime_error::what();
45
}
46
};
tinyb::BluetoothException
Definition:
BluetoothException.hpp:31
tinyb
Definition:
BluetoothObject.hpp:32
Generated by
1.8.11