Example of TRY/CATCH/ENDTRY/THROW:
TRY
C=A/B
CATCH
IF ERRNUM==7 THEN
PRINT "Divided by zero!"
ELSE
THROW ERRNUM
ENDIF
ENDTRY
To make error identification easier, constants for common errors could be added, such as #ERRDIVBY0.
Some errors cannot feasibly be caught, such as syntax errors, but others like division by zero, array subscript out of range, or type mismatch could be done.
1そうだね プレイ済み