MoteException.h
1/********************************************************************
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 *
17 ********************************************************************/
18/*********************************************************************
19 * TinyOS data structures.
20 * Portions borrowed from the TinyOS project (http://www.tinyos.net),
21 * distributed according to the Intel Open Source License.
22 *********************************************************************/
23/***************************************************************************
24 * Desc: Library for generic Crossbow WSN nodes communication
25 * Author: Jose Manuel Sanchez Matamoros, Adrian Jimenez Gonzalez
26 * Date: 15 Aug 2011
27 **************************************************************************/
28
29
30#ifndef MOTEEXCEPION_H
31#define MOTEEXCEPION_H
32
33#include <string>
34using std::string;
35
36namespace mote {
37
39public:
40 const char *what();
41 void append( const char *text );
42protected:
43 std::string str;
44};
45
46
47class CRCException : public MoteException {};
49class IOException : public MoteException {};
50
51}
52
53#endif
54
Definition MoteException.h:47
Definition MoteException.h:49
Definition MoteException.h:38
Definition MoteException.h:48