Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
create_errors.hpp File Reference
#include "system_error.hpp"
Include dependency graph for create_errors.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  tap
 
namespace  tap::errors
 

Macros

#define RAISE_ERROR(drivers, desc)
 

Macro Definition Documentation

◆ RAISE_ERROR

#define RAISE_ERROR (   drivers,
  desc 
)
Value:
do \
{ \
tap::errors::SystemError stringError(desc, __LINE__, __FILE__); \
} while (0);
errors::ErrorController errorController
Definition drivers.hpp:137
mockable void addToErrorList(const SystemError &error)
Definition error_controller.cpp:34
Definition system_error.hpp:30
fang::Drivers & drivers
Definition robot_singleton.cpp:45

Example for how to create and add an error. drivers is a pointer to an tap::Drivers, which contains an instance of an ErrorController.

See also
ErrorController
SystemError
RAISE_ERROR(drivers, "CRC8 failure");
#define RAISE_ERROR(drivers, desc)
Definition create_errors.hpp:42