Skip to content

errtraplib

This library lets a program handle its own runtime errors. The compiler turns SetErr, End SetErr, ClrErr, Ern and ErrFail into calls of it, so they have no entries here. The code between SetErr and End SetErr runs when a runtime error happens, instead of the program stopping; ClrErr removes it again, and ErrFail inside it reports the error after all, which normally ends the program.

SetErr
  NPrint "Something went wrong"
  End
End SetErr

Kept from the original: Ern, meant to give the number of the error, returns a random value (#133).

Library number 64040.

This library declares no commands. Its routines are used by the compiler, by the code it generates or by other libraries.