What are these function used for ?

BlitzMax Forums/BlitzMax Beginners Area/What are these function used for ?

McFox(Posted 2005) [#1]
Hi,
I'm wondering what for are Try, Catch or Throw functions used for. Can someone explain me ?

Many thanks

McFox


Dreamora(Posted 2005) [#2]
They are used for error tracking.

If an error occurs within a try - end try block you can catch it with catch o:object; runtimeerror o.tostring() for example.

throw is to throw your own error message for catch


McFox(Posted 2005) [#3]
Hmm ok, thanks ^^