Bug 13450 – Add WindowsException and wenforce to std.exception

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2014-09-09T22:26:00Z
Last change time
2014-09-26T08:39:20Z
Assigned to
nobody
Creator
dlang-bugzilla

Comments

Comment #0 by dlang-bugzilla — 2014-09-09T22:26:33Z
Having a GetLastError/FormatMessage-based mechanism to handle Win32 errors would be quite useful. We already have ErrnoException and errnoEnforce, however these are for the C errno concept, and do not include Windows errors.
Comment #1 by github-bugzilla — 2014-09-26T08:39:20Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/b1418c958b338aaad19d21a444fb1b7214d7e3c3 fix Issue 13450 - Add WindowsException and wenforce to std.exception Also expose ErrnoException's errno field as a documented property for consistency. https://github.com/D-Programming-Language/phobos/commit/7bc54139de6866adc810cbe906cd15e902802258 Merge pull request #2505 from CyberShadow/pull-20140909-222639 fix Issue 13450 - Add WindowsException and wenforce to std.exception