Created on 2014-01-20.00:00:00 last changed 90 months ago
Proposed resolution:
Change 7 [fs.err.report]:
Functions not having an argument of type
error_code&
report errors as follows, unless otherwise specified:
- 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 type
filesystem_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 thepath1
argument, and the second shall be passed as thepath2
argument. Thefilesystem_error
constructor'serror_code
argument is set as appropriate for the specific operating system dependent error.
- Failure to allocate storage is reported by throwing an exception as described in C++11 § 17.6.4.10.
- Destructors throw nothing.
Functions having an argument of type
error_code&
report errors as follows, unless otherwise specified:
- If 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, the
error_code&
argument is set as appropriate for the specific operating system dependent error. Otherwise,clear()
is called on theerror_code&
argument.
[ 2014-02-13 LWG/SG-3 Issaquah: Proposed wording accepted. ]
Addresses: filesys.ts
The proposed change below was suggested in Issaquah as part of the resolution of issue 13 to clarify the Error reporting section. LWG/SG3 liked the change, but since issue 13 was NAD requested that a separate issue be opened.
History | |||
---|---|---|---|
Date | User | Action | Args |
2017-07-30 20:10:41 | admin | set | status: wp -> open |
2016-01-28 01:00:35 | admin | set | messages: + msg7891 |
2016-01-28 01:00:35 | admin | set | messages: + msg7890 |
2014-01-20 00:00:00 | admin | create |