Frank,
In addition to the other comments.
Within VB.NET I would recommend you only Raise events.
That all exceptions be Thrown!
The Throw keyword accepts an Exception object, all Exception objects should
support passing a message (a string) to the Exception's constructor). If you
do not include the Exception object with Throw, the last Caught exception is
thrown, preserving the stack trace.
By creating your own Exception (create a class that inherits from
Exception). You can include extra information in addition to a simple error
text.
Hope this helps
Jay
"Frank" <fr***@frank.com> wrote in message
news:ca**********@news3.tilbu1.nb.home.nl...
Hi,
what should I use to raise an error:
RAISE
or
THROW
And I am asking this with regard to the future VB.NET developments. Is
Raise the old way and Throw the new? Throw does not have parms to put errortext
in it, so it seems less usable then raise.
I am looking forward to your opinions.Refs to websites about this are
welcome.
Thanks
Frank