Standard Error Codes
Standard NewBrain Error Codes:
002 "Arithmetic error,eg tried to divide by zero, arc sin of value >1"
003 No further statement to execute, but no END or STOP statement found
004 "Illegal line number (valid range is 1-65535)"
006 "Illegal value,eg when DIMensioning an array,valid range is 0-65535"
007 "Illegal array subscript value, subscript must be in the range 0 {1}...dimension"
010 "Out of memory"
014 "OPEN but it is not followed by # ,IN# or OUT#"
017 "Error in numeric function argument, eg LOG(x-""a"")"
019 "wrong number of subscripts in array element, eg DIM a(5) then refered to a(11,2)"
020 "expression wrongly, eg a$=2 n=""PQR"""
021 "something unrecognisable in an expression, eg x=a?3 or a semi-colon separating commands on the same line"
022 ERROR in EXPRESSION: Type mismatch [ STRING * NUMERIC ]
026 NAME of VARIABLE doesn't start with a LETTER
028 Switch VALUE in ON is 0 or greater than number of LINE numbers in LIST
029 Attempt to GOTO a LINE which doesn't exist
030 ERROR in input to an INPUT statement [ Prompt will repeated if from console ]
033 RETURN without corresponding GOSUB
034 GOTO or GOSUB not found where expected in ON
035 Hyphen or End of Line expected in LIST or DELETE
036 Bad INPUT [ i.e. Quotation mark not allowed in unquoted string input]
037 Can't TAB to COLUMN 0
038 Can't POKE a value outside 0...255
039 Insufficient DATA for READ
040 Illegal item in CALL parameter list
041 NEXT without FOR
042 Empty DATA line
044 Illegal Control Variable in FOR statement
045 Syntax ERROR in FOR or NEXT statement [wrong nesting]
046 TO not found where expected in FOR statement
047 STEP not found where expected in FOR statement
048 No NEXT statement found to match the current FOR statement
049 Illegal FOR - NEXT nesting
052 COMMA not found where expected [ e.g. in INPUT, Reply to INPUT or in DATA]
053 End-of-Line not found where expected [ i.e. Reply to INPUT, LIST]
054 CLOSE not followed by #
055 "EQUALs signs not found where expected, or KEYWORD misspelt"
056 Open PARENTHESIS not found where expected
057 Closing PARENTHESIS not found where expected
065 No closing QUOTATION marks in a STRING constant [ response to INPUT ]
068 OPTION not followed by BASE
069 OPTION BASE used after DIMensioning ARRAY
070 OPTION BASE not followed by 0,1
071 DIMensioning of an ARRAY that already exists
072 Dimension too LARGE
073 Dimension 0 when OPTION BASE 1 specified
074 ERROR in FORMATTER other than RANGE ERROR
075 Number in FORMATTER not in RANGE 0...255
080 DEF not followed by FN
081 Illegal user defined FUNCTION NAME in DEF statement
083 No DEF statement for user defined function
084 REDEFINITION of userdefined function with different number of arguments or REFERENCE to an ARRAY with wrong number of DIMENSIONS
085 EXPRESSION to COMPLEX to evaluate, or user defined function references too deeply nested to evaluate
087 Can't CONTINUE
088 Illegal list of ARGUMENTS to CLEAR statement
090 DEVICE STREAM or PORT not in range 0...255
091 Failure to VERIFY
092 Can't CLOSE stream 0
093 ON ERROR or ON BREAK not followed by GOTO
094 LINE number 0 not allowed
095 VAL error - string is not a number
096 LINPUT numeric variable
097 Attempt to ON ERROR or ON BREAK to a non-existent line-number
098 PUT error
099 OUT of DATA
100 Insufficient MEMORY to OPEN stream
104 STRING too long [ Parameter string for OPEN longer than 256 Bytes]
105 STREAM not open
106 Attempt to OPEN a non-existant device
107 Attempt to OPEN a DEVICE/PORT that is already open
108 STREAM already open
109 Attempt to use a device function that doesn't exist [ INPUT from Printer]
110 Syntax ERROR in PARAMETER STRING
111 Attempt to OPEN device which requires MAINS POWER when no mains power connected
112 Insufficient MEMORY for FILL request
113 Linked STREAM not a SCREEN device
114 Requested HEIGHT too large for memory available by linked stream [ w150-159 =(L)110 + 10 Grf.-lines = 6 Ch.-lines// n86 = (L)141-150 + 10 Grf.-lines = 5 Ch.-lines]
115 LINKED STREAM closed
116 POSITION OFF the screen illegal in this context
117 Unrecognized PLOT command or PEN parameter
118 Can't use INPUT from graphics device (use PEN instead)
119 Attempt to OUTPUT to graphics device before INPUT function completed
120 Syntax ERROR in BAUD parameter string
121 PORT number other than 0 for serial device
130 TAPE READ ERROR: HARDWARE failure [ TAPE dropout ]
131 TAPE READ ERROR: attempt to read BLOCK into BUFFER which is too small or HARDWARE failure
132 TAPE READ ERROR: HARDWARE failure [ Checksum error ]
133 Attempt to read past END of TAPE file, or HARDWARE failure
134 Attempt to read a TAPE file out of SEQUENCE, or HARDWARE failure
135 Attempt to OUTPUT to a TAPE file OPENed for INPUT or vice versa
136 TAPE: Syntax ERROR in PARAMETER string
