Conflicting recommendations for throwing system.exception
This page gives an example using Throw system.exception, while this page says not to throw system.exception.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 66364e46-bc27-c535-3b98-500c8796e8fd
- Version Independent ID: 6cf21fe9-9d7a-8654-0660-38a9cafff7ed
- Content: Throw Statement - Visual Basic
- Content Source: docs/visual-basic/language-reference/statements/throw-statement.md
- Product: dotnet-visualbasic
- GitHub Login: @KathleenDollard
- Microsoft Alias: kdollard
Thanks for reporting this @Greydog1
This page should change to use a different exception type.
I'll add this to our backlog, and add the "help-wanted" label in case someone wants to submit a PR before we make the change.
This page gives an example using Throw system.exception,
Which is "This" page?
@shivam-51 It's the following page, which is mentioned in the original post in the Document Details section: https://learn.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/throw-statement

This page should change to use a different exception type.
@BillWagner What can be the different exception type?
I feel the purpose of that document is to show how to throw a generic exception and it does so. If we want to replace it we need to add a generic exception instead of the Exception.
@BillWagner I'll work on this!