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

Method to_error

src/fl/stl/asio/error_code.h:55–60  ·  view source on GitHub ↗

Convert to fl::task::Error for interop with existing FastLED code.

Source from the content-addressed store, hash-verified

53
54 /// Convert to fl::task::Error for interop with existing FastLED code.
55 fl::task::Error to_error() const {
56 if (ok()) {
57 return fl::task::Error();
58 }
59 return fl::task::Error(message);
60 }
61
62 /// Convert from platform errno value.
63 static error_code from_errno(int platform_errno);

Callers 1

FL_TEST_FILEFunction · 0.80

Calls 1

ErrorClass · 0.85

Tested by

no test coverage detected