std::filesystem::filesystem_error(3cxx)

πŸ’– NAME πŸ’–

std::filesystem::filesystem_error β€” the exception type thrown by the Filesystem library. It's giving "something went sideways and I brought receipts". ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <fs_path.h>

Inherits std::system_error. So it's lowkey a system_error at heart, just with extra path lore attached. πŸ’…

πŸ‘‘ Public Member Functions

  • filesystem_error (const filesystem_error &)=default β€” the copy constructor, defaulted, iconic, does exactly what you'd expect.
  • filesystem_error (const string &__what_arg, const path &__p1, const path &__p2, error_code __ec) β€” ctor that takes a what-string, two paths, and an error_code.
  • filesystem_error (const string &__what_arg, const path &__p1, error_code __ec) β€” same deal but with just one path.
  • filesystem_error (const string &__what_arg, error_code __ec) β€” the no-paths-allowed version: what-string plus error_code.
  • const error_code & code () const noexcept β€” hands you back the error_code.
  • filesystem_error & operator= (const filesystem_error &)=default β€” copy assignment, defaulted.
  • const path & path1 () const noexcept β€” the first path.
  • const path & path2 () const noexcept β€” the second path.
  • const char * what () const noexcept β€” the what-string.

🌸 DETAILED DESCRIPTION 🌸

Exception type thrown by the Filesystem library. That's the whole vibe, bestie β€” when a filesystem operation goes wrong, this is what gets yeeted at you. πŸŽ€


πŸ’… MEMBER FUNCTION DOCUMENTATION πŸ’…

const char * std::filesystem::filesystem_error::what () const [virtual], [noexcept]

Returns a C-style character string describing the general cause of the current error β€” and it's literally the same string that got passed to the ctor. No cap. 🫢

Reimplemented from std::runtime_error. πŸ¦‹


✨ AUTHOR ✨

Generated automatically by Doxygen for libstdc++ from the source code. So bestie, nobody hand-typed this β€” the robot did it while we were sleeping. πŸ€–πŸ’–


and that's the whole page, mwah πŸ’‹ β€” straight from the std::filesystem::filesystem_error(3cxx) manual, brought to you by libstdc++. no date stamped on this one, it's giving timeless. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from