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

◆ error() [1/2]

E fl::expected< void, E >::error ( ) const
inline

Get error code (only meaningful if !ok())

Definition at line 88 of file expected.h.

88 {
89 auto* err = mData.template ptr<ErrorInfo<E>>();
90 return err ? err->code : E{};
91 }
fl::variant< VoidSuccess, ErrorInfo< E > > mData
Definition expected.h:216
expected type for operations that can fail (C++23-style)
Definition expected.h:79