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

--- Comment #6 from Vladimir Panteleev <[email protected]> ---
(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.

--

Reply via email to