Skip to content

Commit beab5b1

Browse files
CopilotBillWagner
andauthored
Fix conflicting System.Exception recommendation in Visual Basic documentation (#48548)
* Initial plan * Fix conflicting System.Exception recommendation in VB docs Co-authored-by: BillWagner <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: BillWagner <[email protected]>
1 parent 3ec8e70 commit beab5b1

File tree

1 file changed

+1
-1
lines changed
  • samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrStatements/VB

1 file changed

+1
-1
lines changed

samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrStatements/VB/Class1.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ Public Class Class1
278278
Sub TestThrow()
279279
'<Snippet84>
280280
' Throws a new exception.
281-
Throw New System.Exception("An exception has occurred.")
281+
Throw New InvalidOperationException("The operation is not valid for the current state.")
282282
'</Snippet84>
283283
End Sub
284284

0 commit comments

Comments
 (0)