Skip to content

Commit

Permalink
feat: add error codes to exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Dec 4, 2023
1 parent 8092c42 commit 329546d
Show file tree
Hide file tree
Showing 18 changed files with 542 additions and 138 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"numbers": "cpp",
"semaphore": "cpp",
"stop_token": "cpp",
"charconv": "cpp"
"charconv": "cpp",
"any": "cpp"
}
}
2 changes: 1 addition & 1 deletion include/dpp/event_router.h
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ template<class T> class event_router_t {
if (std::holds_alternative<regular_handler_t>(listener)) {
std::get<regular_handler_t>(listener)(event);
} else {
throw dpp::logic_exception("cannot handle a coroutine event handler with a library built without DPP_CORO");
throw dpp::logic_exception("cannot handle a coroutine event handler with a library built without DPP_CORO");
}
}
};
Expand Down
Loading

0 comments on commit 329546d

Please sign in to comment.