cppalliance / NuDB

NuDB: A fast key/value insert-only database for SSD drives in C++11
Boost Software License 1.0
384 stars 59 forks source link

Use error_code along side exceptions #3

Closed vinniefalco closed 8 years ago

vinniefalco commented 8 years ago

nudb should use and offer boost::system::error_codeinterfaces for all functions natively. The existing APIs which throw exceptions should just call the versions which return error codes and rethrow the error as boost::system::system_error (like Asio does).

An open question is how a caller can determine, in cross-platform fashion, the outcome of certain file operations. For example, that the file did not exist.

vinniefalco commented 8 years ago

Exceptions are gone, error codes are in, develop

vinniefalco commented 8 years ago

Merged to master