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
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms