# std::experimental::filesystem::filesystem_error

> C++ Atlas: `cppatlas.com/w/cpp/experimental/fs/filesystem_error` | Source: https://en.cppreference.com/w/cpp/experimental/fs/filesystem_error | Domain: Technical specifications

An exception type thrown when errors are encountered.

## Official Specification Summary (cppreference)

```cpp
// Defined in header <experimental/filesystem>
class filesystem_error; // (filesystem TS)
```

An exception type thrown when errors are encountered.

Inheritance diagram

### Member functions

- (constructor): constructs the error object (public member function)
- `path1`, `path2`: returns the paths that were involved in the operation that caused the error (public member function)
- `what`: returns the explanatory string (public member function)

### See also

> Note: This section is incomplete

---
Attribution: content from https://en.cppreference.com/w/cpp/experimental/fs/filesystem_error (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.