Title: More verbose exceptions · Issue #1102 · DSharpPlus/DSharpPlus · GitHub
Open Graph Title: More verbose exceptions · Issue #1102 · DSharpPlus/DSharpPlus
X Title: More verbose exceptions · Issue #1102 · DSharpPlus/DSharpPlus
Description: Summary DSharpPlus throws a lot of exceptions if you mess up a lot of stuff, but what really causes it when it does? In a lot of cases you don't really know. My suggestion is to add more error prevention/handling by throw exceptions when...
Open Graph Description: Summary DSharpPlus throws a lot of exceptions if you mess up a lot of stuff, but what really causes it when it does? In a lot of cases you don't really know. My suggestion is to add more error prev...
X Description: Summary DSharpPlus throws a lot of exceptions if you mess up a lot of stuff, but what really causes it when it does? In a lot of cases you don't really know. My suggestion is to add more error ...
Opengraph URL: https://github.com/DSharpPlus/DSharpPlus/issues/1102
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"More verbose exceptions","articleBody":"# Summary\r\nDSharpPlus throws a lot of exceptions if you mess up a lot of stuff, but what really causes it when it does? In a lot of cases you don't really know. My suggestion is to add more error prevention/handling by throw exceptions when the user tries to do stuff they shouldn't.\r\n\r\n# Details\r\nE.g. #1031 had discussion about embed limits, and not exactly knowing where limits are hit. Instead of getting a 500: bad request dsharpplus should prevent actually sending this data, and possibly explain in the exception what the user did wrong.\r\n\r\nThere's a lot of cases like this where the library does not properly prevent user errors, causing indescriptive exceptions to be thrown where the user does not really always know what went wrong. The library should tell the user why their request was invalid before actually sending in my opinion because I'm fairly sure discord just tells you \"no\".\r\n\r\nDo tell me if I'm wrong and whether Discord exceptions are actually descriptive and whether I'm dumb\r\n\r\n# Steps to reproduce\r\nNot applicable\r\n\r\n# Notes\r\nThis issue also serves as a place to collect different instances of the library not properly preventing user errors.","author":{"url":"https://github.com/Naamloos","@type":"Person","name":"Naamloos"},"datePublished":"2021-09-29T20:52:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1102/DSharpPlus/issues/1102"}
| 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:d14980fa-58b9-a381-fcaf-bb7e9f5d5b83 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82A0:18E07E:3AA7AD:4B53B5:698D174D |
| html-safe-nonce | 8bba5e6c955bbf412362f6cf02ce375b6a24442ba81741638a5c5510a5af521e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkEwOjE4RTA3RTozQUE3QUQ6NEI1M0I1OjY5OEQxNzREIiwidmlzaXRvcl9pZCI6Ijg1ODU4NTY5MDg4NzAzNTg4NjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b36f8bd15c51c625d471173624424967089c941782482c212316475d85ba7a3c |
| hovercard-subject-tag | issue:1011432744 |
| 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/DSharpPlus/DSharpPlus/1102/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4a73cc85d6c5d4ac089e238a5063618f9f52d635bed5b5e8b7472d4574f212c4/DSharpPlus/DSharpPlus/issues/1102 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4a73cc85d6c5d4ac089e238a5063618f9f52d635bed5b5e8b7472d4574f212c4/DSharpPlus/DSharpPlus/issues/1102 |
| og:image:alt | Summary DSharpPlus throws a lot of exceptions if you mess up a lot of stuff, but what really causes it when it does? In a lot of cases you don't really know. My suggestion is to add more error prev... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Naamloos |
| hostname | github.com |
| expected-hostname | github.com |
| None | c25395580e1e3bf82d705e0982a1b24255366088720fef945f1493d5e3e67954 |
| turbo-cache-control | no-preview |
| go-import | github.com/DSharpPlus/DSharpPlus git https://github.com/DSharpPlus/DSharpPlus.git |
| octolytics-dimension-user_id | 36208721 |
| octolytics-dimension-user_login | DSharpPlus |
| octolytics-dimension-repository_id | 67243489 |
| octolytics-dimension-repository_nwo | DSharpPlus/DSharpPlus |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 67243489 |
| octolytics-dimension-repository_network_root_nwo | DSharpPlus/DSharpPlus |
| 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 | 94219dcb9c044792ec271fd5b23c73419858bef7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width