FastLED 3.9.15
Loading...
Searching...
No Matches

◆ message() [2/2]

template<typename E>
const char * fl::expected< void, E >::message ( ) const
inline

Definition at line 157 of file expected.h.

157 {
158 auto* err = mData.template ptr<ErrorInfo<E>>();
159 return err ? err->message.c_str() : "";
160 }
fl::variant< VoidSuccess, ErrorInfo< E > > mData
Definition expected.h:216
const char * message() const FL_NOEXCEPT
Get error message (only meaningful if !ok())
Definition expected.h:94
expected type for operations that can fail (C++23-style)
Definition expected.h:79

References FL_NOEXCEPT, and mData.