iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages

Exceptions are used to indicate errors during operation of the distributed Blackboard federation, such as errors occurring during execution of subscriber callbacks, errors due to some blackboards going down, etc.

Classes

class  nrt::exception::BlackboardException
 Class for Blackboard exceptions. More...
 
class  nrt::exception::ModuleException
 Class for Module exceptions. More...
 

Macros

#define NRT_MODULE_EXCEPTION(what)
 Macro to conveniently construct a new ModuleException using only a message. More...
 

Macro Definition Documentation

#define NRT_MODULE_EXCEPTION (   what)

Macro to conveniently construct a new ModuleException using only a message.

If you don't want to create your own specialized exception type, but still want to throw something in your Module, feel free to use this convenience macro like so:

if (someAwfulCondition == true) throw NRT_MODULE_EXCEPTION("Some awful condition was true!");

Definition at line 289 of file Exceptions.H.