Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove fc dynamic_rethrow_exception #1031

Merged
merged 1 commit into from
Nov 15, 2024
Merged

Remove fc dynamic_rethrow_exception #1031

merged 1 commit into from
Nov 15, 2024

Conversation

heifner
Copy link
Member

@heifner heifner commented Nov 14, 2024

Remove fc::exception::dynamic_rethrow_exception. To work correctly dynamic_rethrow_exception requires registration via FC_REGISTER_EXCEPTIONS which was never done for any of the eosio::chain defined exceptions.

Since this feature never has worked as expected for eosio::chain defined exceptions, remove it to avoid confusion.

Resolves #980

@heifner heifner requested review from greg7mdp and linh2931 November 14, 2024 16:41
@heifner heifner added the OCI Work exclusive to OCI team label Nov 14, 2024
@@ -13,7 +13,7 @@
(const chain::next_function_variant<call_result>& result) mutable { \
if (std::holds_alternative<fc::exception_ptr>(result)) { \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to your change, but instead of these std::holds_alternative<. and std::get<>, it would be cleaner to use std::visit with lambdas.

@heifner heifner merged commit 07d65b8 into main Nov 15, 2024
78 checks passed
@heifner heifner deleted the GH-980-fc-except branch November 15, 2024 19:43
@ericpassmore
Copy link
Contributor

Note:start
category: System Stability
component: Internal
summary: Improved support for eosio::chain defined exceptions by removing dynamic-rethrow-exception
Note:end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fc exception handling
4 participants