Title: Replace `Requires.NotNullOrEmpty(string)` with `ArgumentException.ThrowIfNullOrEmpty` by xtqqczze · Pull Request #19197 · PowerShell/PowerShell · GitHub
Open Graph Title: Replace `Requires.NotNullOrEmpty(string)` with `ArgumentException.ThrowIfNullOrEmpty` by xtqqczze · Pull Request #19197 · PowerShell/PowerShell
X Title: Replace `Requires.NotNullOrEmpty(string)` with `ArgumentException.ThrowIfNullOrEmpty` by xtqqczze · Pull Request #19197 · PowerShell/PowerShell
Description: Breaking change: Bucket 3: Unlikely Grey Area This PR makes changes to public APIs so that an ArgumentException is thrown instead of ArgumentNullException when a string is empty rather than null. System.Management.Automation.Subsystem.Prediction.PredictionContext.Create(String) System.Management.Automation.Subsystem.Prediction.PredictiveSuggestion..ctor(String) System.Management.Automation.Subsystem.Prediction.PredictiveSuggestion..ctor(String, String) System.Management.Automation.Subsystem.Prediction.CommandPrediction.OnSuggestionAccepted(PredictionClient, Guid, UInt32, String) If a consumer caught the ArgumentNullException and not the base class ArgumentException this is a change in behavior. However, it seems unlikely to depend on a specific exception being thrown, because if specific behavior was required, the caller could have implemented the necessary business logic.
Open Graph Description: Breaking change: Bucket 3: Unlikely Grey Area This PR makes changes to public APIs so that an ArgumentException is thrown instead of ArgumentNullException when a string is empty rather than null. ...
X Description: Breaking change: Bucket 3: Unlikely Grey Area This PR makes changes to public APIs so that an ArgumentException is thrown instead of ArgumentNullException when a string is empty rather than null. ...
Opengraph URL: https://github.com/PowerShell/PowerShell/pull/19197
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:9e67a968-de4f-da25-d4fc-eb2d2ceb51c0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 926C:196973:365DE:469E6:6A5546A3 |
| html-safe-nonce | 9234e55e19467253260bf952f1356cbb9c02973cdd868c4574280518d160b4c9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjZDOjE5Njk3MzozNjVERTo0NjlFNjo2QTU1NDZBMyIsInZpc2l0b3JfaWQiOiI4NzczMTY3NjY1Mzg2OTY0NjQzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b11ca956db9659659af6eababfcec8f6babc193963dc6169ba8066f9b963beb8 |
| hovercard-subject-tag | pull_request:1250889354 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/PowerShell/PowerShell/pull/19197/files |
| twitter:image | https://avatars.githubusercontent.com/u/45661989?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/45661989?s=400&v=4 |
| og:image:alt | Breaking change: Bucket 3: Unlikely Grey Area This PR makes changes to public APIs so that an ArgumentException is thrown instead of ArgumentNullException when a string is empty rather than null. ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cd9eea424140838b22e9eabd53d92b5702617ddd6d76efcd3a37f08d44309ca5 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3084b9f587e8f1e19803bbe0c77ac77ce3c99c5c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width