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)