MCPcopy Create free account
hub / github.com/FastLED/FastLED / Error

Class Error

src/fl/task/promise.h:39–47  ·  view source on GitHub ↗

Error type for promises

Source from the content-addressed store, hash-verified

37
38/// Error type for promises
39struct Error {
40 fl::string message;
41
42 Error() FL_NOEXCEPT = default;
43 Error(const fl::string& msg) FL_NOEXCEPT : message(msg) {}
44 Error(const char* msg) FL_NOEXCEPT : message(msg) {}
45 Error(fl::string&& msg) FL_NOEXCEPT : message(fl::move(msg)) {}
46 bool is_empty() const FL_NOEXCEPT { return message.empty(); }
47};
48
49// Forward declaration for implementation
50namespace detail {

Callers 15

await_top_levelFunction · 0.85
make_errorFunction · 0.85
rejectMethod · 0.85
complete_with_errorMethod · 0.85
make_rejected_promiseFunction · 0.85
beginMethod · 0.85
beginMethod · 0.85
beginMethod · 0.85
transmitMethod · 0.85
setClockSpeedMethod · 0.85
waitMethod · 0.85
cancelMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected