REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
Loading...
Searching...
No Matches
error.h
Go to the documentation of this file.
20template <typename... Args> FLASHMEM std::string small_sprintf(const char *format, Args... args) {
69 status(int code, const char *format, Args... args) : status(code, small_sprintf(format, args...)) {}
A recoverable error, inspired from https://abseil.io/docs/cpp/guides/status and https://github....
Definition error.h:35
status & attach_to(status &other, const char *description="")
Attach this error message to another one. Is chainable, returns self.
Definition error.h:81
status(const char *format, Args... args)
Usage like status("Foo %d bar %s baz", 3, "bling");.
Definition error.h:66
status & attach(const status &other, const char *description="")
Attach another error message to this one. Is chainable, returns self.
Definition error.h:72
status & attach(int _code, const char *_msg)
Attach a "raw" message to this one.
Definition error.h:87
status()
Empty means success. See also success() method for more verbosity in code.
Definition error.h:50
Definition carrier.h:12
Definition handler.h:10
FLASHMEM std::string small_sprintf(const char *format, Args... args)
Definition error.h:20