Throw ApplicationException : Throw « Development « VB.Net Tutorial






Module Module1
    Sub Main()
        Try
            Throw New ApplicationException("You threw this custom exception.")
        Catch e As Exception
            Console.WriteLine(e.Message)
        Finally
            Console.WriteLine("Finally...")
        End Try
    End Sub
End Module
You threw this custom exception.
Finally...








7.8.Throw
7.8.1.Throw ApplicationException
7.8.2.Throw Exception with catch
7.8.3.Throw Exception Without Catch
7.8.4.Throw Exception Catch Rethrow
7.8.5.Throw custom exception