std::filesystem::filesystem_error(3cxx)

๐ŸŒธ NAME ๐ŸŒธ

okay so bestie, welcome to the 3cxx manual page for std::filesystem::filesystem_error โ€” literally the exception type thrown by the Filesystem library. ๐Ÿ’– Itโ€™s giving โ€œfilesystem said noโ€ energy, and honestly? Iconic.

โœจ SYNOPSIS โœจ

You pull it in with:

#include <filesystem>

And yes, it inherits std::system_error โ€” system_error lineage, iykyk. ๐Ÿฆ‹

๐ŸŽ€ Public Member Functions ๐ŸŽ€

Hereโ€™s the full roster, copied exactly because we do not play with signatures:

filesystem_error (const filesystem_error &)=default
filesystem_error (const string &__what_arg, const path &__p1, const path
    &__p2, error_code __ec)
filesystem_error (const string &__what_arg, const path &__p1, error_code
    __ec)
filesystem_error (const string &__what_arg, error_code __ec)
const error_code & code () const noexcept
filesystem_error & operator= (const filesystem_error &)=default
const path & path1 () const noexcept
const path & path2 () const noexcept
const char * what () const noexcept

Thatโ€™s the copy ctor, three constructors taking a string/path/error_code combo, code(), copy assignment, path1(), path2(), and what(). Slay. ๐Ÿ’…

๐Ÿ’ซ Detailed Description ๐Ÿ’ซ

Exception type thrown by the Filesystem library. Thatโ€™s it, thatโ€™s the whole mood. ๐Ÿ˜ญ lowkey iconic.

Since: C++17 โ€” so itโ€™s been main character since C++17, periodt.

๐Ÿซถ Member Function Documentation ๐Ÿซถ

๐Ÿ’€ const char * std::filesystem::filesystem_error::what () const [virtual], [noexcept]

okay so what() returns a C-style character string describing the general cause of the current error (the same string passed to the ctor). Ngl thatโ€™s the whole tea. ๐Ÿ“

Itโ€™s reimplemented from std::runtime_error, and it references std::make_error_code(). Keep those facts safe, bestie. โœจ

๐Ÿ‘‘ Author ๐Ÿ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. So no human hand-wrote this page โ€” Doxygen did, and honestly it ate. ๐Ÿซถ


xoxo, your libstdc++ girlie ๐Ÿ’– โ€” this was the std::filesystem::filesystem_error(3cxx) page, generated by Doxygen, and the footer didnโ€™t give us a date (no cap, weโ€™re just vibing). Stay sparkling, bestie! ๐ŸŒˆโœจ

๐Ÿ“ฆ where this page comes from