std::error_code::message(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

🌸 NAME 🌸

okay so this is std::error_code::message(3), straight from the C++ Standard Libary manual β€” and the name is literally std::error_code::message, no cap.

✨ Synopsis ✨

std::string message() const;  (since C++11)

It hands you back the message that goes with your current error code value and its category, bestie.

It’s equivalent to category().message(value()). periodt.

πŸŽ€ Parameters πŸŽ€

  • none β€” zero, nada, no args, we love a no-parameter situation πŸ’…

πŸ’– Return value πŸ’–

The error message that corresponds to the current error code value and category. iconic, honestly πŸ¦‹

πŸ”₯ Exceptions πŸ”₯

It may throw implementation-defined exceptions β€” so like, don’t assume it’s exception-free, bestie 😭


signed off with a sparkle: source http://cppreference.com, version/date 2024.06.10 β€” bye bestie πŸ’…πŸŽ€

πŸ“¦ where this page comes from