Skip to Content

Summary

Trappable - Program

NoErrorNoError
1Out of range2*
3*4Mistake
5Missing ,6Type mismatch
7No FN8*
9Missing ”10Bad DIM
11DIM space12Not LOCAL
13No PROC14Array
15Subscript16Syntax error
17Escape18Division by zero
19String too long20Too big
21-ve root22Log range
23Accuracy lost24Exp range
25*26No such variable
27Missing )28Bad HEX
29No such FN/PROC30Bad call
31Arguments32No FOR
33Can’t match FOR34FOR variable
35*36No TO
37*38No GOSUB
39ON syntax40ON range
41No such line42Out of DATA
43No REPEAT44*
45Missing #

* Not applicable to BBC BASIC(Z80)

Trappable - Operating System

NoError
192Too many open files
220Bad syntax
222Channel
252File Access errorsReported as one of the following:
Already exists
Bad filename
End of file
File Not found
File type mismatch
In use
Read Protected
Suspended
Write protected
253Sorry, not implemented
254Bad command

Untrappable - Error Code 0

No roomRENUMBER space
SillyLINE space
SorryBad program
Failed at nnn

Strictly speaking ‘Bad program’ does not have an error code. It leaves ERR and ERL unchanged.

Last updated on