Gets the last error code that was thrown.
Use this function in a catch
block to determine the type of error that was thrown.
See Built-In Constants
for a list of error codes used by TMBASIC functions.
function ErrorCode() as Number
— The last error code that was thrown.
throw 5, "hello"