mirror of
https://gitflic.ru/project/erthink/libmdbx.git
synced 2025-05-14 14:58:29 +00:00
mdbx++: вброс std::invalid_argument
с явным сообщением "MDBX_EINVAL"
.
This commit is contained in:
parent
f8e332a205
commit
94531a9cdc
@ -373,7 +373,7 @@ __cold std::string error::message() const {
|
||||
__cold void error::throw_exception() const {
|
||||
switch (code()) {
|
||||
case MDBX_EINVAL:
|
||||
throw std::invalid_argument("mdbx");
|
||||
throw std::invalid_argument("MDBX_EINVAL");
|
||||
case MDBX_ENOMEM:
|
||||
throw std::bad_alloc();
|
||||
case MDBX_SUCCESS:
|
||||
|
Loading…
Reference in New Issue
Block a user