mirror of
https://gitflic.ru/project/erthink/libmdbx.git
synced 2025-06-18 22:18:52 +00: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 {
|
__cold void error::throw_exception() const {
|
||||||
switch (code()) {
|
switch (code()) {
|
||||||
case MDBX_EINVAL:
|
case MDBX_EINVAL:
|
||||||
throw std::invalid_argument("mdbx");
|
throw std::invalid_argument("MDBX_EINVAL");
|
||||||
case MDBX_ENOMEM:
|
case MDBX_ENOMEM:
|
||||||
throw std::bad_alloc();
|
throw std::bad_alloc();
|
||||||
case MDBX_SUCCESS:
|
case MDBX_SUCCESS:
|
||||||
|
Loading…
Reference in New Issue
Block a user