std::filesystem::filesystem_error(3cxx)

std::filesystem::filesystem_error3cxx

Exception type thrown by the filesystem library.

Usage

#include <filesystem>

Inherits std::system_error.

Public Member Functions

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

Detailed Description

Exception type thrown by the Filesystem library.

Since

C++17

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 (the same string passed to the ctor).

Reimplemented from std::runtime_error.

References std::make_error_code().

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

Generated automatically by Doxygen for libstdc++ from the source code.

From libstdc++-12-doc 12.4.0-5 in Debian 13 (Trixie). Also shipped by libstdc++-13-doc, libstdc++-14-doc. Parsed by carta from the page's man source.