-
Notifications
You must be signed in to change notification settings - Fork 0
/
ErrorCodes.h
113 lines (101 loc) · 3.35 KB
/
ErrorCodes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/** Copyright (C) 2006, Ian Paul Larsen.
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License along
** with this program; if not, write to the Free Software Foundation, Inc.,
** 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
**/
// a list of run time errors thrown by array/stack/ and interperter
// the actual messages associates with each type can be found in interperter
#ifndef ERROR_NONE
#define ERROR_NONE 0
//ERRROR numbers greater than 0 are NOT trappable with the "ONERR" statement
// and are fatal at runtime
#define ERROR_NOSUCHLABEL -1
#define ERROR_NEXTNOFOR -2
#define ERROR_NOTARRAY -3
#define ERROR_NOTSTRINGARRAY -4
#define ERROR_ARGUMENTCOUNT -5
#define ERROR_MAXRECURSE -6
#define ERROR_FUNCRETURN -7
#define ERROR_STACKUNDERFLOW -8
//ERRROR numbers greater than 0 are trappable with the "ONERR" statement
#define ERROR_FOR1 2
#define ERROR_FOR2 3
#define ERROR_FILENUMBER 5
#define ERROR_FILEOPEN 6
#define ERROR_FILENOTOPEN 7
#define ERROR_FILEWRITE 8
#define ERROR_FILERESET 9
#define ERROR_ARRAYSIZELARGE 10
#define ERROR_ARRAYSIZESMALL 11
#define ERROR_NOSUCHVARIABLE 12
#define ERROR_ARRAYINDEX 15
#define ERROR_STRNEGLEN 16
#define ERROR_STRSTART 17
#define ERROR_STREND 18
#define ERROR_NONNUMERIC 19
#define ERROR_RGB 20
#define ERROR_PUTBITFORMAT 21
#define ERROR_POLYARRAY 22
#define ERROR_POLYPOINTS 23
#define ERROR_IMAGEFILE 24
#define ERROR_SPRITENUMBER 25
#define ERROR_SPRITENA 26
#define ERROR_SPRITESLICE 27
#define ERROR_FOLDER 28
#define ERROR_INFINITY 29
#define ERROR_DBOPEN 30
#define ERROR_DBQUERY 31
#define ERROR_DBNOTOPEN 32
#define ERROR_DBCOLNO 33
#define ERROR_DBNOTSET 34
#define ERROR_EXTOPBAD 35
#define ERROR_NETSOCK 36
#define ERROR_NETHOST 37
#define ERROR_NETCONN 38
#define ERROR_NETREAD 39
#define ERROR_NETNONE 40
#define ERROR_NETWRITE 41
#define ERROR_NETSOCKOPT 42
#define ERROR_NETBIND 43
#define ERROR_NETACCEPT 44
#define ERROR_NETSOCKNUMBER 45
#define ERROR_PERMISSION 46
#define ERROR_IMAGESAVETYPE 47
#define ERROR_DIVZERO 50
#define ERROR_BYREF 51
#define ERROR_BYREFTYPE 52
#define ERROR_FREEFILE 53
#define ERROR_FREENET 54
#define ERROR_FREEDB 55
#define ERROR_DBCONNNUMBER 56
#define ERROR_FREEDBSET 57
#define ERROR_DBSETNUMBER 58
#define ERROR_DBNOTSETROW 59
#define ERROR_PENWIDTH 60
#define ERROR_COLORNUMBER 61
#define ERROR_ARRAYINDEXMISSING 62
#define ERROR_IMAGESCALE 63
#define ERROR_FONTSIZE 64
#define ERROR_FONTWEIGHT 65
#define ERROR_RADIXSTRING 66
#define ERROR_RADIX 67
#define ERROR_LOGRANGE 68
#define ERROR_STRINGMAXLEN 69
#define ERROR_NOTANUMBER 70
// Insert new error messages here
#define ERROR_NOTIMPLEMENTED 9999
#define ERROR_NOTIMPLEMENTED_MESSAGE
#define ERROR_USER_MESSAGE
//
#endif