Namespaces
Variants
Views
Actions

std::filesystem::filesystem_error

From cppreference.com
 
 
 
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.

cpp/error/exceptioncpp/error/runtime errorcpp/error/system errorstd-filesystem-filesystem error-inheritance.svg
About this image

Inheritance diagram

Contents

[edit] Member functions

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

Inherited from std::system_error

Member functions

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

Inherited from std::runtime_error


Inherited from std::exception

Member functions

[virtual]
destroys the exception object
(virtual public member function of std::exception) [edit]
[virtual]
returns an explanatory string
(virtual public member function of std::exception) [edit]

[edit] Example