www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13450] New: Add WindowsException and wenforce to std.exception

https://issues.dlang.org/show_bug.cgi?id=13450

          Issue ID: 13450
           Summary: Add WindowsException and wenforce to std.exception
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: thecybershadow gmail.com

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.

--
Sep 09 2014