ONERROR

Place where find documentation
Post Reply
User avatar
Fernando Perez
Posts: 378
Joined: Mon Feb 15, 2021 10:09 pm
Location: Santander (Spain)
Has thanked: 195 times
Been thanked: 267 times

ONERROR

Post by Fernando Perez »

Francesco, Do you have a list of the errors caught by ONERROR and the corresponding number of BAS.ERRNUM?
Thank you.
User avatar
cicciocb
Site Admin
Posts: 1989
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 426 times
Been thanked: 1329 times
Contact:

Re: ONERROR

Post by cicciocb »

this should be the list but it evolves constantly

ERROR_CODE ERROR_MESSAGE
0 No Error
1 Syntax error
2 Out of memory
3 Identifier too long
4 No such variable
5 Bad subscript
6 Too many dimensions
7 Too many initialisers
8 Illegal type
9 Too many nested fors
10 For without matching next
11 Next without matching for
12 Divide by zero
13 Negative logarithm
14 Negative square root
15 Sine or cosine out of range
16 End of input file
17 Illegal offset
18 Type mismatch
19 Input too long
20 Bad value at
21 Not an integer at
22 Too many nested gosubs at
23 Return without gosub at
24 Label not found at
25 No closing ENDIF
26 ENDIF without IF
27 ELSE without IF
28 WHILE without WEND
29 WEND without WHILE
30 DO without LOOP
31 LOOP without DO
32 EXITDO without LOOP
33 DATA not available
34 SELECT END missing
35 Too many nested SELECT
36 CASE without SELECT
37 SELECT END without SELECT CASE
38 WGET invalid request
39 Invalid IP address
40 Invalid Email setup
41 Pin invalid
42 SUB arguments invalid
43 Too many nested SUB at
44 SUB without END SUB
45 END SUB without SUB
46 LOCAL not inside SUB
47 EXIT SUB without SUB
48 FILE not found
49 DHT setup not done
50 OLED not initialised
51 Time format wrong
52 Date format wrong
53 BNO055 not initialised
54 TFT not initialised
55 BME280 not initialised
56 UDP not initialised
57 Color name not valid
58 Invalid MAC address
59 PLAY not initialised
60 Not enought Data
61 Too many nested whiles
62 ELSEIF without IF
63 IMAGE format not valid
User avatar
Fernando Perez
Posts: 378
Joined: Mon Feb 15, 2021 10:09 pm
Location: Santander (Spain)
Has thanked: 195 times
Been thanked: 267 times

Re: ONERROR

Post by Fernando Perez »

Perfect. Thank you so much.
image.png
You do not have the required permissions to view the files attached to this post.
Post Reply