std::filesystem::filesystem_error - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::filesystem::filesystem_error

From cppreference.com
< cpp‎ | filesystem

Defined in header `<filesystem>` |  |
class filesystem_error; |  | (since C++17)

The class `std::filesystem::filesystem_error` defines an exception object that is thrown on failure by the throwing overloads of the functions in the filesystem library.

| This section is incomplete Reason: add inheritance diagram

### [edit] Member functions

(constructor) | constructs the error object (public member function) [edit]
path1path2 | returns the paths that were involved in the operation that caused the error (public member function) [edit]
what | returns the explanatory string (public member function) [edit]

## Inherited from std::system_error

### Member functions

code | returns error code (public member function of `std::system_error`) [edit]
what [virtual] | returns explanatory string (virtual public member function of `std::system_error`) [edit]

## Inherited from std::runtime_error

## Inherited from std::exception

### Member functions

(destructor) [virtual] | destructs the exception object (virtual public member function of `std::exception`) [edit]
what [virtual] | returns an explanatory string (virtual public member function of `std::exception`) [edit]

### [edit] Example

| This section is incomplete Reason: no example

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/filesystem/filesystem_error&oldid=84704"
Categories:

- Todo with reason
- Todo no example