plusBASIC Error Messages - fvdhoef/aquarius-plus GitHub Wiki

This page is work in progress

See also : ERR Pseudo-Variable

Error Codes

  • 1 - NEXT without FOR
  • 2 - Syntax
  • 3 - RETURN without GOSUB
  • 4 - Out of DATA
  • 5 - Illegal quantity
  • 6 - Overflow
  • 7 - Out of memory
  • 8 - Undefined line number
  • 9 - Subscript out of range
  • 10 - Duplicate definition
  • 11 - Division by zero
  • 12 - Illegal direct
  • 13 - Type mismatch
  • 14 - Out of string space
  • 15 - String too long
  • 16 - String formula too complex
  • 17 - Can't continue
  • 18 - Undefined user function
  • 19 - Missing operand
  • 20 - No RESUME
  • 21 - RESUME without GOSUB
  • 22 - Unprintable
  • 23 - Line buffer overflow
  • 24 - Statement not implemented
  • 25 - Undefined line label
  • 26 - ARGS without GOSUB
  • 27 - Undimensioned array
  • 28 - Too many operands
  • 29 - Invalid mode
  • 30 - Bad range
  • 31 - Empty string
  • 32 - String length
  • 49 - Bad file
  • 50 - File not found
  • 51 - Too many files
  • 52 - Invalid parameter
  • 53 - Input past end
  • 54 - File already exists
  • 55 - I/O
  • 56 - No disk
  • 57 - Not empty

Below are the various error messages one may encounter from plusBASIC:

  • Syntax error -- the command you entered was not recognized by the system, or the structure of the command parameters was incorrect/incomplete.

  • File not found error -- the path or file was not present on the SD card. In some cases this error will be returned if the SD card itself is not present.

  • Illegal Quantity -- The value of an expression or the content of a string were invalid for the called function or statement.

  • No disk error -- There is no SD Card present in the system.

  • Duplicate Definition error -- Attempt to dimension an array variable that has already been dimensioned.

  • Out of memory error -- There wasn't enough available memory to allocate the requested amount.

  • Overflow error -- The calculation generated a result too large to be represented by the floating-point variable.

  • Undefined line number error -- The plusBASIC interpreter encountered an out of sequence line number:

    • Line numbers must be in order:
      • ✅ 100, 110, 111, 200, 251
      • 🚫 300, 150, 500, 20
    • Line numbers may be contiguous OR discontiguous:
      • ✅ 100, 101, 102, 103
      • ✅ 100, 257, 3001, 8699
    • Line numbers must always increase:
      • ✅ 100, 200, 500, 700
      • 🚫 300, 299, 298, 297
    • Line numbers may not be duplicated:
      • 🚫 100, 110, 120, 110, 500, 120