std::filesystem::filesystem_error::what

From cppreference.com
 
 
 
 
const char* what() const;
(since C++17)

Returns the explanatory byte string that was stored in the exception object.

[edit] Parameters

(none)

[edit] Exceptions

noexcept specification:  
noexcept
  

[edit] Example