[fs.err.report] (original) (raw)

When a call by the implementation to an operating system or other underlying API results in an error that prevents the function from meeting its specifications, an exception of typefilesystem_error shall be thrown.

For functions with a single path argument, that argument shall be passed to thefilesystem_error constructor with a single path argument.

For functions with two path arguments, the first of these arguments shall be passed to thefilesystem_error constructor as the path1 argument, and the second shall be passed as the path2 argument.

Thefilesystem_error constructor's error_code argument is set as appropriate for the specific operating system dependent error.