mirror of
https://github.com/isar/libmdbx.git
synced 2025-04-02 15:22:58 +08:00
mdbx++: вброс std::invalid_argument
с явным сообщением "MDBX_EINVAL"
(backport).
This commit is contained in:
parent
ca1808d57f
commit
3d2b221256
@ -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