Migrated from: https://gitlab.com/m2crypto/m2crypto/-/issues/135
Created by: Matěj Cepl mcepl@cepl.eu
Created at: 2016-06-07T20:44:01.547Z
Milestone: later_break_API
https://gitlab.com/m2crypto/m2crypto/commit/612c02b2ddb6075801cdd9fb57c8597588011c8b#note_12309129
BIO.write()
should throw proper exception when the underlying C-module returns error level.
Actually, all functions should use exceptions properly.