errors.def 10.4 KB
Newer Older
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 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286
#
# This file contains the error constants that are used in the ScriptBasic interpreter.
# The Perl program generrh.pl creates the files:
#
#     o errcodes.c   (errcodes.h is created from this file via headerer.pl)
#     o error.bas    (in the directory "include")
#
# %RT means run-time errors. Only these are put into the BASIC include file.
# %CT means compile-time errors. These are not present in the BASIC include file
#
# %MODULE names the actual module
#
# Each non-empty line should contain the error ID or the text for it.
# The error ID will be used to create the C #define constant as well as the BASIC
# Const constant.
#
# If you have the ID XXX_YYY_ZZZ in the module MMM then the C #define name will be
#
#        MMM_ERROR_XXX_YYY_ZZZ
#
# The BASIC Const will be
#
#       sbErrorXxxYyyZzz
#
# unless you define an alternative error constant name for the BASIC include file, for example:
#
#    MODTIME_FAIL SetModifyTime
#
# If you look at the definition of this error the BASIC symbolic ID is following the C #define
# symbolic name ID separated by space. If this is not defined the BASIC include ID is
# automatically calculated.
#
# Note that the constant MODULE_ERROR_SUCCESS and MODULE_ERROR_MEMORY_LOW are automatically
# generated. Also note that MODULE_ERROR_SUCCESS is guaranteed to be ZERO and all other
# errors are NOT zero. Also guaranteed that ALLMODULES_ERROR_MEMORY_LOW are equal.
#
%RT
%MODULE COMMAND
NOARRAY
en/Function can not return a whole array
DIV
en/Division by zero or other calculation error
UNDEFOP
en/Argument to operator is undefined
BAD_CALL
en/The command or sub was called the wrong way
FEW_ARGS
en/There are not enough arguments of the module function.
ARGUMENT_TYPE
en/The argument passed to a module function is not the needed type.
ARGUMENT_RANGE
en/The argument passed to a module function is out of the accepted range.
FILE_READ
en/The module experiences difficulties reading the file
FILE_WRITE
en/The module experiences difficulties writing the file.
FILE
en/The module experiences handling the file.
CIRCULAR
en/There is a circular reference in memory.
MODULE_NOT_LOADED
en/The module can not be unloaded, because it was not loaded.
PARTIAL_UNLOAD
en/Some modules were active and could not be unloaded.
MODULE_ACTIVE
en/The module can not be unloaded, because it is currently active.
MODULE_LOAD
en/The requested module can not be loaded.
MODULE_FUNCTION
en/The requested function does not exist in the module.
MODULE_INITIALIZE
en/The module did not initialize correctly
MODULE_VERSION
en/The module was developed for a different version of ScriptBasic.
BAD_FILE_NUMBER
en/File number is out of range, it should be between 1 and 512
FILE_NUMBER_IS_USED
en/The file number is already used.
FILE_CANNOT_BE_OPENED
en/The file can not be opened.
FILE_IS_NOT_OPENED
en/The file is not opened.
INVALID_LOCK
en/The lock type is invalid.
PRINT_FAIL
en/The print command failed. The file may be locked by another process.
MKDIR_FAIL
en/Directory can not be created.
DELETE_FAIL
en/The directory or file could not be deleted.
NOTIMP
en/Command is not implemented and no currently loaded extension module defined behaviour for it
INVALID_JOKER
en/The character can not be a joker or wild card character.
NO_RESUME
en/The code tried to execute a resume while not being in error correction code.
INV_DNAME InvalidDirectoryName
en/The directory name in open directory is invalid.
INV_DO_OPTION InvalidOptionDirOpen
en/Invalid option for directory open.
DIR_NO_OPEN DirectoryNoOpen
en/The directory can not be opened.
BAD_RECORD_LENGTH
en/The record length is invalid in the open statements (undefined, zero or negative)
CURDIR NoCurrentDirectory
en/The current directory can not be retrieved for some reason.
UNDEF_DIR ChDirUndef
en/The directory name in chdir can not be undef.
CHDIR ChDir
en/Cannot change the current working directory to the desired directory.
RETURN_WITHOUT_GOSUB
en/The command RETURN can not be executed, because there is no where to return.
INVALID_ARGUMENT_FOR_FUNCTION_ADDRESS
en/The argument for the function address is invalid.
SETFILE_INVALID_ATTRIBUTE
en/The attribute value or symbol is invalid in the set file command.
CHOWN_INVALID_USER
en/The user does not exist.
CHOWN_NOT_SUPPORTED
en/The chown command is not supported on Win95 and Win98
CHOWN_SET_OWNER
en/Can not change owner.
INVALID_FILE_NAME
en/The file name is invalid.
CREATIME_FAIL SetCreateTime
en/Setting the create time of the file has failed.
MODTIME_FAIL SetModifyTime
en/Setting the modify time of the file has failed.
ACCTIM_FAIL SetAccessTime
en/Setting the access time of the file has failed
INVALID_TIME_FORMAT
en/The specified time format is invalid
INVALID_TIME
en/The time is not valid, cannot be earlier than January 1, 1970. 00:00
EXTENSION_SPECIFIC
en/Extension specific error: %s
SOCKET_FILE
en/The operation can be done on files only and not on sockets.
INVALID_CODE
en/The embedding application tried to start the code at an invalid location
MANDARG
en/Mandatory argument is missing
TIMEOUT
en/Subprocess did not finish within time limits
STAYS_IN_MEMORY
en/The module can not be unloaded
PREPROCESSOR_ABORT
en/The preprocessor said to abort program compilation or execution.

%CT
%MODULE BU
FILE_CORRUPT
en/The file is either corrupt or was written with a different version of sb.
NO_CODE
en/The compiled program contains no executable code.
FAIL
en/Code file can not be saved.
ECODE_INPUT
en/The interpreter file can not be read

%MODULE READER
INCLUDE_SYNTAX
en/Bad syntax in include statement.
INCLUDE_FILE
en/Include file is not found
TOOMANY_INCLUDE
en/Too many includes, probably recursive include
PREPROC_UNDEF
en/Preprocessor \"%s\" is not defined.
PREPROC_LONG
en/Preprocessor name is too long.
PREPROC_NOTAVA
en/Preprocessor \"%s\" is not available.
PREPROC_NOTVAL
en/Preprocessor \"%s\" is invalid.
FILE_OPEN
en/The file can not be read.
EMPTY_INPUT
en/The file is empty or is not readable.

%MODULE PREPROC
FAIL
en/The external preprocessor failed.
CONFIG_EXE
en/The preprocessor executable is not configured.
CONFIG_DIR
en/The preprocessor temporary directory is not configured.

%MODULE LEX
TOO_LONG_SYMBOL
en/Symbol is too long
STRING_NOT_TERMINATED
en/string is not terminated anywhere before end of file
STRING_NEW_LINE
en/string is not terminated anywhere before end of line
BAD_RADIX
en/the number contains invalid radix. BASE#NNN numbers areavailable for 2<=BASE<=36 only.
INVALID_NUMBER
en/the BASE#NNN formatted number digit is out of range

%MODULE EXE
INVALID_PC
en/Program counter points out of the code. The executed code is corrupt.
INVALID_PC1
en/Internal error or the cached code is corrupt.
INVALID_NODE
en/Internal error or the cached code is corrupt.
INVALID_OPCODE
en/invalid op code is in the code table
NOT_IMPLEMENTED
en/The code exists, but it is not implemented.
INVALID_EXPRESSION_NODE
en/Internal error or the cached code is corrupt.
INVALID_EXPRESSION_NODE1
en/Internal error or the cached code is corrupt.
INTERNAL_DEFAULTTYPE
en/Internal error when releasing a variable it has no correct type
INTERNAL_UNDEF
en/Internal error when releasing undefined variable, nonsense
INTERNAL_MEMREF
en/Internal error when releasing variable reference found
INTERNAL
en/any non classified internal error
NO_LOCAL
en/local variable referenced in global context or in a local context having no local variables
INVALID_LVALNODE0
en/Internal error or the cached code is corrupt.
INVALID_LVALNODE1
en/Internal error or the cached code is corrupt.
INVALID_LVALNODE2
en/Internal error or the cached code is corrupt.
INVALID_LVALNODE3
en/Internal error or the cached code is corrupt.
INVALID_LVALNODE4
en/Internal error or the cached code is corrupt.
INVALID_LVALNODE5
en/Internal error or the cached code is corrupt.
INVALID_LVALNODE6
en/Internal error or the cached code is corrupt.
USERFUN_UNDEFINED
en/the user function is undefined
TOO_DEEP_CALL
en/Recursive function calls exceeded configuration limit.
TOO_LONG_RUN
en/Program is running too long, probably infinite loop.

%MODULE EX
INTERNAL
en/Internal error in the syntax analyzer
LABEL_DOUBLE_DEFINED
en/A line label was defined more than once.
LABEL_NOT_DEFINED
en/A label \"%s\" was not defined during syntax analysis.
FUNCTION_DOUBLE_DEFINED
en/The user function was already defined.
FUNCTION_NOT_DEFINED
en/The user function \"%s\" is used but is not defined.
NO_OLD_NAMESPACE
en/There was no module started when an end module statement was found.
UNFINISHED_MODULE
en/A module was not closed at end of file.
TOO_LONG_NAME_SPACE
en/the name space grew too long
TOO_LONG_VARIABLE
en/variable and namespace does not fit into the buffer
MISSING_PAREN
en/ closing ) is missing in expression
MISSING_OPAREN
en/ opening ( is missing in sub call
MISSING_APAREN
en/ closing ] is missing following array indeces
MISSING_SAPAREN
en/ closing } is missing following associative array indices
FUNCTION_NEEDS_ARGUMENTS
en/ built in function needs arguments
TOO_FEW_ARGUMENTS
en/ Built in function has too few arguments
TOO_MANY_ARGUMENTS
en/ Built in function has too many arguments
BAD_NESTING
en/erroneous nesting of constructs like IF/ELSIF/ELSE/ENDIF/REPEAT/LOOP/WHILE and so on
UNFINISHED_NESTING
en/nested construct remained unclosed when local_end
SYNTAX
en/syntax error, no syntax defintion matches the line or syntax defintion does not match the line
SYNTAX_FATAL
287
en/Undefined syntax error encountered
288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321
TOO_MANY_WAITING_LABEL
en/there are more then MAX_SAME_LABEL labels referencing the same line
UNDEF_GLOBAL
en/Global variable was not declared.
UNDEF_PRAGMA
en/Compiler option \"%s\" is not implemented
GREDEF
en/Global variable \"%s\" is redefined.
GLODEF
en/Variable \"%s\" can not be used as global and local in a sub.
CONST_LVAL
en/The variable is declared as constant. Needs 'var' declaration.

%MODULE MEM
INTERNAL001
en/DupVar can not duplicate array. This is an internal error.

%MODULE MATCH
INDEX_OUT_OF_RANGE
en/The format string contains $n where n is out of range.
BUFFER_SHORT
en/The provided buffer is too short.
SYNTAX_ERROR
en/Invalid pattern contains no character after the ~ sign.
ARRAY_SHORT
en/The provided string array is too short.

%MODULE CONFIG

%MODULE SCRIBA
FAIL
en/Operation failed
BUFFER_SHORT
en/The provided buffer is too short.