No, I mean, when an application ends, it returns a value to the OS. by default the value is zero (it means no error), but If an error occurs, then you can tell the OS (or the calling application who has started the one that has caused the error) another number.
As isntance:
'--- file error.bmx ----
print "hello, where going to load a image"
Local MyImage:TImage = LoadImage("something.bmp")
if MyImage = 0 or MyImage = Null then
Print "Image was not loaded"
EndWithError 1 'this doesn't exists
Endif
And what does the OS do with the error returned?
by default Nothing, but this errorlevel can be checked later to ensure the application has run without errors.
BMK, for example, returns an errorlevel different to 0 when the application wasn't compiled for any reason (syntax error or whatever).