mirror of
https://github.com/isar/libmdbx.git
synced 2025-04-20 03:57:47 +08: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…
x
Reference in New Issue
Block a user