You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Ilya Pronin (JIRA)" <ji...@apache.org> on 2017/08/16 15:28:01 UTC
[jira] [Created] (MESOS-7896) Use std::error_code for reporting
platform-dependent errors
Ilya Pronin created MESOS-7896:
----------------------------------
Summary: Use std::error_code for reporting platform-dependent errors
Key: MESOS-7896
URL: https://issues.apache.org/jira/browse/MESOS-7896
Project: Mesos
Issue Type: Improvement
Reporter: Ilya Pronin
Priority: Minor
It may be useful to return an error code from various functions to be able to distinguish different kinds of errors. E.g. for being able to ignore {{ENOENT}} from {{unlink()}}. This can be achieved by returning {{Try<T, ErrnoError>}}, but this is not portable.
Since C++11 STL has {{std::error_code}} that hides platform-dependent error code behind a portable error condition. We can use it for error reporting.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)