reverbrain / eblob

Eblob is an append-only low-level IO library, which saves data in blob files. Created as low-level backend for elliptics
GNU Lesser General Public License v3.0
104 stars 29 forks source link

Exception instead of error code #100

Closed shaitan closed 9 years ago

shaitan commented 9 years ago

I've returned using exception instead of error code in eblob cpp binding and made messages of these exceptions in common style.

bioothod commented 9 years ago

I thought of using exceptions instead of error codes, but this will likely slow down operations. It doesn't break API, but I do not know anyone who uses eblob c++ binding, do you?

shaitan commented 9 years ago

Yes, we have guys who use eblob c++ binding. In most cases exceptions do not slow down operations. I will make another pull request with fixes in tests.