title: throw exception from one method to another in vb.net
body: <p>I am trying to throw exception from one method to another by that if any error occures then the main method will print it in message box. I have already done in c# but trying to write same in vb.net  but always giving error when i throw it to another method.Thanks in advance for help.</p>
  <pre><code>  Public Async Function test() As Task(Of DataSet)
  
      Try
  
          Dim ds As New DataSet
  
  
  
          Dim a, b As Integer
          a = &quot;a&quot;
          b = 7
          Dim c = a / b
  
  
          Await Task.Run(Function() adapter.Fill(ds))
  
  
      Catch ex As Exception
          Throw
      End Try
  
  
      Return ds
  
    End Function
  </code></pre>
  <p><a href="https://i.stack.imgur.com/FbCZS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FbCZS.png" alt="enter image description here" /></a></p>