Raising errors - errornumbers

  • Thread starter Thread starter Klaus Jensen
  • Start date Start date
K

Klaus Jensen

Hi!

I often raise my own errors in code, and I just use ErrorNumber 1, since I
do not use this number for anything (like maintaining a table of
errornumbers or whatever).

I then started wondering... Is this an okay use of raising errors? Should I
use a certain range of numbers for some reason? Is there a best practice for
raising errors - things to consider?

- Klaus
 
Hello,

Klaus Jensen said:
I often raise my own errors in code, and I just use
ErrorNumber 1, since I do not use this number
for anything (like maintaining a table of
errornumbers or whatever).

I then started wondering... Is this an okay use of
raising errors? Should I use a certain range of
numbers for some reason? Is there a best practice for
raising errors - things to consider?

http://msdn.microsoft.com/library/en-us/vblr7/html/vamthraise.asp

HTH,
Herfried K. Wagner
 
Back
Top