Title: Improve error message for missing required parameters · Issue #412 · scijava/scijava-common · GitHub
Open Graph Title: Improve error message for missing required parameters · Issue #412 · scijava/scijava-common
X Title: Improve error message for missing required parameters · Issue #412 · scijava/scijava-common
Description: See #380 (comment). Maybe we can add some API (to ObjectService? somewhere else?) to keep track of human-friendly types, such as: String friendlyType = objectService.getHumanFriendlyName(Type type); // e.g. RandomAccessibleInterval => "a...
Open Graph Description: See #380 (comment). Maybe we can add some API (to ObjectService? somewhere else?) to keep track of human-friendly types, such as: String friendlyType = objectService.getHumanFriendlyName(Type type)...
X Description: See #380 (comment). Maybe we can add some API (to ObjectService? somewhere else?) to keep track of human-friendly types, such as: String friendlyType = objectService.getHumanFriendlyName(Type type)...
Opengraph URL: https://github.com/scijava/scijava-common/issues/412
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve error message for missing required parameters","articleBody":"See https://github.com/scijava/scijava-common/issues/380#issuecomment-595975277.\r\n\r\nMaybe we can add some API (to `ObjectService`? somewhere else?) to keep track of human-friendly types, such as:\r\n\r\n```java\r\nString friendlyType = objectService.getHumanFriendlyName(Type type); // e.g. RandomAccessibleInterval =\u003e \"an image\"\r\n```\r\n(falling back to `\"an object\"`),\r\nand then something like:\r\n\r\n```\r\n\"This operation requires \" + name + \" of type \" + type + \".\"\r\n```\r\n\r\n... to generate an error message such as:\r\n\r\n\u003e This operation requires an image of type RandomAccessibleInterval.","author":{"url":"https://github.com/imagejan","@type":"Person","name":"imagejan"},"datePublished":"2020-12-03T15:54:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/412/scijava-common/issues/412"}
| 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:b9a41746-ebc3-e5d6-470d-4a618da58523 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BDD0:7E20E:5D185D:8031B8:696A77ED |
| html-safe-nonce | f661844a71a62024679d01a3b62371cea39c5bf63993630184c3fa8e63f39ded |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREQwOjdFMjBFOjVEMTg1RDo4MDMxQjg6Njk2QTc3RUQiLCJ2aXNpdG9yX2lkIjoiOTExMjAwMzc1NTY4MTQxMzEwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c6f13f8264d7680850e7f93d42e4451a333b6a032d087ed4580e76ae0b6daac2 |
| hovercard-subject-tag | issue:756323191 |
| 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/412/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0c9feafdc5fa117f6dc6fdfaa321e4f2d2cb266a3e3a556728a3af689275e16b/scijava/scijava-common/issues/412 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0c9feafdc5fa117f6dc6fdfaa321e4f2d2cb266a3e3a556728a3af689275e16b/scijava/scijava-common/issues/412 |
| og:image:alt | See #380 (comment). Maybe we can add some API (to ObjectService? somewhere else?) to keep track of human-friendly types, such as: String friendlyType = objectService.getHumanFriendlyName(Type type)... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | imagejan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5b774e44f85c14a75886edd04ddda4e5a25ddebbb241bcbb590b08a3048730e8 |
| 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 | cc5f4eee261b3601c1e98e217ceaf28508b9567e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width