'Throw' operand must derive from 'System.Exception'

The argument supplied to Throw must either be an instance of System.Exception or an instance of a class derived from System.Exception.

Error ID: BC30665

To correct this error

  • Use an argument derived from System.Exception, as in the following example.

    Throw New System.Exception("This is an error.")
    

See Also

Concepts

Exception Class in Visual Basic

Reference

Throw Statement (Visual Basic)

Try...Catch...Finally Statement (Visual Basic)

Other Resources

Exception and Error Handling in Visual Basic