Skip to content

Commit 929cbf6

Browse files
committed
fix: fix warning Thrown exception type is not nothrow copy constructible
1 parent 375f998 commit 929cbf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/legacy/api/APIHelp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ inline Exception WrongArgsCountException(std::string const& func) {
5858
// 截获引擎异常
5959
#define CATCH_AND_THROW \
6060
catch (Exception const& e) { \
61-
throw e; \
61+
throw; \
6262
} \
6363
catch (std::exception const& e) { \
6464
throw Exception(e.what()); \

0 commit comments

Comments
 (0)