An optional error message. Create one with PW_STATUS_MSG("..."); a default-constructed Message is empty.
How a message is stored depends on the pw_status configuration, so its contents are only accessible by logging the status with PW_LOG_STATUS.
Public Member Functions | |
| constexpr | Message (const char *)=delete |
| template<typename Fn > | |
| _PW_STATUS_MSG_CONSTEXPR | Message (internal::DeferredStatusMessage< Fn > deferred) noexcept |
| constexpr bool | empty () const noexcept |
Friends | |
| class | StatusBase |
| struct | internal::StatusMessageAccess |
|
inlineconstexprnoexcept |
Returns true if there is no message. PW_STATUS_MSG("") is a message with no text, so it is not empty.