MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / BrainFlowException

Class BrainFlowException

src/utils/inc/brainflow_exception.h:8–32  ·  view source on GitHub ↗

BrainFlowException class to notify about errors

Source from the content-addressed store, hash-verified

6
7/// BrainFlowException class to notify about errors
8class BrainFlowException : public std::exception
9{
10
11public:
12 /// exit code returned from low level API
13 int exit_code;
14
15 explicit BrainFlowException (const char *msg, int exit_code) : std::exception ()
16 {
17 msg_ = std::string (msg) + std::to_string (exit_code);
18 this->exit_code = exit_code;
19 }
20
21 virtual ~BrainFlowException () throw ()
22 {
23 }
24
25 virtual const char *what () const throw ()
26 {
27 return msg_.c_str ();
28 }
29
30protected:
31 std::string msg_;
32};
33
34#endif

Callers 15

get_oxygen_levelMethod · 0.85
get_heart_rateMethod · 0.85
perform_lowpassMethod · 0.85
perform_highpassMethod · 0.85
perform_bandpassMethod · 0.85
perform_bandstopMethod · 0.85
detect_peaks_z_scoreMethod · 0.85
perform_downsamplingMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected