Skip to content

Commit 07f0d6e

Browse files
CopilotBillWagner
andcommitted
Fix conflicting System.Exception recommendation in VB docs
Co-authored-by: BillWagner <[email protected]>
1 parent dfce697 commit 07f0d6e

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)