description | title | ms.date | f1_keywords | ms.assetid | |
---|---|---|---|---|---|
Learn more about: filesystem_error Class | filesystem_error Class | 09/10/2018 |
| c53aac27-c1fa-43e4-8967-48ea8ba1f172 |
A base class for all exceptions that are thrown to report a low-level system overflow.
classfilesystem_error : publicsystem_error;
The class serves as the base class for all exceptions thrown to report an error in <filesystem> functions. It stores an object of type string
, called mymesg
here for the purposes of exposition. It also stores two objects of type path
, called mypval1
and mypval2
.
Name | Description |
---|---|
filesystem_error | Constructs a filesystem_error message. |
Name | Description |
---|---|
path1 | Returns mypval1 |
path2 | Returns mypval2 |
what | Returns a pointer to an NTBS . |
Header: <filesystem>
Namespace: std::experimental::filesystem
The first constructor constructs its message from what_arg and ec. The second constructor also constructs its message from pval1, which it stores in mypval1
. The third constructor also constructs its message from pval1, which it stores in mypval1
, and from pval2, which it stores in mypval2
.
filesystem_error(const string& what_arg, error_code ec); filesystem_error(const string& what_arg, const path& pval1, error_code ec); filesystem_error(const string& what_arg, const path& pval1, const path& pval2, error_code ec);
what_arg
Specified message.
ec
Specified error code.
mypval1
Further specified message parameter.
mypval2
Further specified message parameter.
The member function returns mypval1
const path& path1() constnoexcept;
The member function returns mypval2
const path& path2() constnoexcept;
The member function returns a pointer to an NTBS
, preferably composed from runtime_error::what()
, system_error::what()
, mymesg
, mypval1.native_string()
, and mypval2.native_string()
.
constchar *what() constnoexcept;