[Issue 13541] std.windows.syserror.sysErrorString() should be nothrow

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Sep 28 02:55:01 PDT 2014


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

--- Comment #6 from Vladimir Panteleev <thecybershadow at gmail.com> ---
(In reply to Marco Leise from comment #3)
> When I was writing platform specific code, I just put POSIX and WinAPI
> enforcement into a single `osApiEnforce`, throwing an OSApiException. I
> found I used it very often, because it was so easy to remember.

I think it would be nice to make WindowsException and ErrnoException a
descendant of a new OSException class. FileException should be an alias of
OSException - there really isn't anything specific to file operations (when
compared with other syscalls) to warrant an exception class of their own.

--


More information about the Digitalmars-d-bugs mailing list