pxar
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Friends
core
api
exceptions.h
1
5
#ifndef PXAR_EXCEPTIONS_H
6
#define PXAR_EXCEPTIONS_H
7
8
#include <exception>
9
#include <string>
10
11
namespace
pxar {
12
15
class
pxarException
:
public
std::exception {
16
public
:
17
pxarException
(
const
std::string& what_arg) : std::exception(),ErrorMessage(what_arg) {}
18
~
pxarException
()
throw
() {};
19
virtual
const
char
* what()
const
throw
(){
20
return
ErrorMessage.c_str();
21
};
22
private
:
23
std::string ErrorMessage;
24
};
25
31
class
InvalidConfig
:
public
pxarException
{
32
public
:
33
InvalidConfig
(
const
std::string& what_arg) :
pxarException
(what_arg) {}
34
};
35
39
class
FirmwareVersionMismatch
:
public
pxarException
{
40
public
:
41
FirmwareVersionMismatch
(
const
std::string& what_arg) :
pxarException
(what_arg) {}
42
};
43
47
class
UsbConnectionError
:
public
pxarException
{
48
public
:
49
UsbConnectionError
(
const
std::string& what_arg) :
pxarException
(what_arg) {}
50
};
51
54
class
UsbConnectionTimeout
:
public
pxarException
{
55
public
:
56
UsbConnectionTimeout
(
const
std::string& what_arg) :
pxarException
(what_arg) {}
57
};
58
61
class
DataMissingEvent
:
public
pxarException
{
62
public
:
63
uint32_t numberMissing;
64
DataMissingEvent
(
const
std::string& what_arg, uint32_t nmiss) :
pxarException
(what_arg), numberMissing(nmiss) {}
65
};
66
69
class
DataDecodingError
:
public
pxarException
{
70
public
:
71
DataDecodingError
(
const
std::string& what_arg) :
pxarException
(what_arg) {}
72
};
73
77
class
DataInvalidAddressError
:
public
DataDecodingError
{
78
public
:
79
DataInvalidAddressError
(
const
std::string& what_arg) :
DataDecodingError
(what_arg) {}
80
};
81
85
class
DataInvalidPulseheightError
:
public
DataDecodingError
{
86
public
:
87
DataInvalidPulseheightError
(
const
std::string& what_arg) :
DataDecodingError
(what_arg) {}
88
};
89
93
class
DataCorruptBufferError
:
public
DataDecodingError
{
94
public
:
95
DataCorruptBufferError
(
const
std::string& what_arg) :
DataDecodingError
(what_arg) {}
96
};
97
98
}
//namespace pxar
99
100
#endif
/* PXAR_EXCEPTIONS_H */
pxar::InvalidConfig
Definition:
exceptions.h:31
pxar::pxarException
Definition:
exceptions.h:15
pxar::FirmwareVersionMismatch
Definition:
exceptions.h:39
pxar::DataMissingEvent
Definition:
exceptions.h:61
pxar::DataCorruptBufferError
Definition:
exceptions.h:93
pxar::DataInvalidPulseheightError
Definition:
exceptions.h:85
pxar::UsbConnectionTimeout
Definition:
exceptions.h:54
pxar::DataInvalidAddressError
Definition:
exceptions.h:77
pxar::UsbConnectionError
Definition:
exceptions.h:47
pxar::DataDecodingError
Definition:
exceptions.h:69
Generated on Tue Mar 3 2015 10:03:37 for pxar by
1.8.6