##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::filesystem::filesystem_error::filesystem_error

From cppreference.com
< cpp‎ | filesystem‎ | filesystem error

filesystem_error( const std::string& what_arg, std::error_code ec ); | (1) | (since C++17)
filesystem_error( const std::string& what_arg, const std::filesystem::path& p1, std::error_code ec ); | (2) | (since C++17)
filesystem_error( const std::string& what_arg, const std::filesystem::path& p1, const std::filesystem::path& p2, std::error_code ec ); | (3) | (since C++17)

Constructs a new filesystem error object. The explanatory string is set to `what_arg`, error code is set to `ec` and optionally, the paths that were involved in the operation that resulted in the error, are set to `p1` and `p2`.

### [edit] Parameters

| This section is incomplete

### [edit] Example

| This section is incomplete Reason: no example

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

- Todo without reason
- Todo no example