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 force-pushed the nbrei_improve_exceptions branch from 75b23bc to f2f340b Compare May 7, 2024 01:16
@nathanwbrei nathanwbrei changed the title Refactor JComponentSummary for JMultifactories, JEventUnfolders, etc Improve exception handling logic in all components May 8, 2024
@nathanwbrei nathanwbrei force-pushed the nbrei_improve_exceptions branch from 3fd909f to 107d202 Compare May 8, 2024 04:11
Previously, it was the JEventSource, which doesn't work in the case of TimesliceExample, because PhysicsEvents come straight from the pool.
@nathanwbrei nathanwbrei force-pushed the nbrei_improve_exceptions branch from 107d202 to 8a74887 Compare May 8, 2024 05:04
@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