1 Imports Microsoft.VisualBasic
\r
3 Public Class TestClass
\r
4 Public Function Test()
\r
7 Err.Raise (514, Nothing, "This is just a sample error", nothing, nothing)
\r
8 If Err.Number <> 514 then
\r
9 Throw New Exception ("#Raise01")
\r
11 If Err.Description <> "This is just a sample error" then
\r
12 Throw New Exception ("#Raise02")
\r