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

Improve exception handling logic in all components #301

Merged
merged 9 commits into from
May 8, 2024

Conversation

nathanwbrei
Copy link
Collaborator

@nathanwbrei nathanwbrei commented May 3, 2024

  • JException now reports wrapped exception type
  • Created JException wrapper common to all components (except JFactory, for now)
  • Renamed fields on JException to make sense for all components

This will substantially clean up our component internals, while making exception handling more consistent and reliable
Putting the callback name in the exception message was making the messages very long and obscuring the important part
Now uses (function_name, type_name, instance_name, plugin_name) which make sense for all components
@nathanwbrei nathanwbrei changed the title Improve exception handling Refactor JComponentSummary for JMultifactories, JEventUnfolders, etc May 4, 2024
@nathanwbrei nathanwbrei changed the title Refactor JComponentSummary for JMultifactories, JEventUnfolders, etc Improve exception handling logic in all components May 8, 2024
Previously, it was the JEventSource, which doesn't work in the case of TimesliceExample, because PhysicsEvents come straight from the pool.
@nathanwbrei nathanwbrei merged commit 1912e26 into master May 8, 2024
3 checks passed
@nathanwbrei nathanwbrei deleted the nbrei_improve_exceptions branch May 8, 2024 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant