nomlib
Loading...
Searching...
No Matches
nom::filesystem::filesystem_error Class Reference

Exception type used to report filesystem errors. More...

#include <filesystem.hpp>

Inheritance diagram for nom::filesystem::filesystem_error:
[legend]

Public Member Functions

 filesystem_error (const std::string &what_arg, const path &p1, std::error_code ec)
 filesystem_error (const std::string &what_arg, const path &p1, const path &p2, std::error_code ec)
const path & path1 () const noexcept
 Return the first path associated with the error.
const path & path2 () const noexcept
 Return the second path associated with the error, if any.
const char * what () const noexcept override
 Return a message describing the error and the involved paths.

Private Attributes

path path1_
path path2_
std::string what_

Detailed Description

Exception type used to report filesystem errors.

Mirrors the interface described in ISO/IEC TS 18822:2015 (N4100) and Boost.Filesystem. The exception stores the path(s) involved and the error code, and its what() string includes the supplied reason, the path(s), and the system error message.

Definition at line 394 of file filesystem.hpp.

Member Data Documentation

◆ path1_

path nom::filesystem::filesystem_error::path1_
private

Definition at line 413 of file filesystem.hpp.

◆ path2_

path nom::filesystem::filesystem_error::path2_
private

Definition at line 414 of file filesystem.hpp.

◆ what_

std::string nom::filesystem::filesystem_error::what_
mutableprivate

Definition at line 415 of file filesystem.hpp.


The documentation for this class was generated from the following file: