std::filesystem::filesystem_error::path1, std::filesystem::filesystem_error::path2

From cppreference.com
 
 
 
filesystem_error
Member functions
filesystem_error::path1filesystem_error::path2
Inherited from std::system_error
 
const std::filesystem::path& path1() const;
(since C++17)
const std::filesystem::path& path2() const;
(since C++17)

Returns the paths that were stored in the exception object.

Parameters

(none)

Exceptions

noexcept specification:  
noexcept
  

Example