Title: Need a way to load classes without eating exceptions · Issue #219 · scijava/scijava-common · GitHub
Open Graph Title: Need a way to load classes without eating exceptions · Issue #219 · scijava/scijava-common
X Title: Need a way to load classes without eating exceptions · Issue #219 · scijava/scijava-common
Description: @EikeHeinz encountered a problem where ClassUtils.loadClass returns null, eating the exception as designed. But then the calling code in PluginInfo.loadClass throws another exception (InstantiableException) with the message "Class not fo...
Open Graph Description: @EikeHeinz encountered a problem where ClassUtils.loadClass returns null, eating the exception as designed. But then the calling code in PluginInfo.loadClass throws another exception (InstantiableE...
X Description: @EikeHeinz encountered a problem where ClassUtils.loadClass returns null, eating the exception as designed. But then the calling code in PluginInfo.loadClass throws another exception (InstantiableE...
Opengraph URL: https://github.com/scijava/scijava-common/issues/219
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Need a way to load classes without eating exceptions","articleBody":"@eikeheinz encountered a problem where `ClassUtils.loadClass` returns null, eating the exception as designed. But then the calling code in `PluginInfo.loadClass` throws another exception (`InstantiableException`) with the message \"Class not found\" with no cause.\n\nWe probably want `ClassUtils.loadClass` signatures that throw some unified exception (perhaps `IllegalArgumentException`) which can be called by code that needs to know why the class loading fails. A lot of code doesn't, but in this case, the `PluginInfo.loadClass` would benefit from knowing.\n\nJust need to be careful about naming.\n","author":{"url":"https://github.com/ctrueden","@type":"Person","name":"ctrueden"},"datePublished":"2016-01-21T15:00:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/219/scijava-common/issues/219"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d86ebd7e-2100-daa6-1fb6-b5bf9375d6ce |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF28:2603AD:10005D0:151E391:696B69B4 |
| html-safe-nonce | 922ad9e6ef3acd0e4dce27255910716f10cab8b5e0d0760dda150f14789a4329 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjI4OjI2MDNBRDoxMDAwNUQwOjE1MUUzOTE6Njk2QjY5QjQiLCJ2aXNpdG9yX2lkIjoiNzIwMTA5NDczNjA3MDUzNTYwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c3753c60a04306f01cdfb5d96b48fb1b87aaa56aef64d7b912e7f03874305513 |
| hovercard-subject-tag | issue:127943343 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scijava/scijava-common/219/issue_layout |
| twitter:image | https://opengraph.githubassets.com/378e777ff8594165899546b08bccd6536d56c430c782627904737d2c37b4d4dc/scijava/scijava-common/issues/219 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/378e777ff8594165899546b08bccd6536d56c430c782627904737d2c37b4d4dc/scijava/scijava-common/issues/219 |
| og:image:alt | @EikeHeinz encountered a problem where ClassUtils.loadClass returns null, eating the exception as designed. But then the calling code in PluginInfo.loadClass throws another exception (InstantiableE... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ctrueden |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/scijava/scijava-common git https://github.com/scijava/scijava-common.git |
| octolytics-dimension-user_id | 1262770 |
| octolytics-dimension-user_login | scijava |
| octolytics-dimension-repository_id | 3594497 |
| octolytics-dimension-repository_nwo | scijava/scijava-common |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3594497 |
| octolytics-dimension-repository_network_root_nwo | scijava/scijava-common |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width