You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Alex Clemmer (JIRA)" <ji...@apache.org> on 2015/12/10 03:14:10 UTC
[jira] [Created] (MESOS-4110) Implement `WindowsError` to
correspond with `ErrnoError`.
Alex Clemmer created MESOS-4110:
-----------------------------------
Summary: Implement `WindowsError` to correspond with `ErrnoError`.
Key: MESOS-4110
URL: https://issues.apache.org/jira/browse/MESOS-4110
Project: Mesos
Issue Type: Bug
Components: stout
Reporter: Alex Clemmer
Assignee: Alex Clemmer
In the C standard library, `errno` records the last error on a thread. You can pretty-print it with `strerror`.
In Stout, we report these errors with `ErrnoError`.
The Windows API has something similar, called `GetLastError()`. The way to pretty-print this is hilariously unintuitive and terrible, so in this case it is actually very beneficial to wrap it with something similar to `ErrnoError`, maybe called `WindowsError`.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)