Error type for promises
| 37 | |
| 38 | /// Error type for promises |
| 39 | struct 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 |
| 50 | namespace detail { |
no outgoing calls
no test coverage detected