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

From cppreference.com
 
 
 
 
const std::filesystem::path& path1() const noexcept;
(since C++17)
const std::filesystem::path& path2() const noexcept;
(since C++17)

Returns the paths that were stored in the exception object.

Parameters

(none)

Return value

References to the copy of the path parameters stored by the constructor.

Example