-
Notifications
You must be signed in to change notification settings - Fork 0
Error Messages
MICROWAVE edited this page Aug 27, 2019
·
4 revisions
Trust me, you are gonna see lots of error messages while coding. This wiki page will help you to debug your program if you are confused and don't know how to deal with the said error.
-
!ERRORThose error with a ! at the beginning means it come from the engine. That means you typed an unexisting command or you didn't typed the right syntax. (see Chapter 2) -
!!ERRORErrors with two ! means that the error come from the interpreter (see Chapter 2) -
[fileman.cpp] Error!The error come from the file managing system. See chapter 3 -
[stringop.cpp] ErrorThe error come from the math expression system. See chapter 4 -
[stringadd.cpp] ErrorThe error come from the string expression system. See chapter 4 -
[stringcomp.cpp] ErrorThe error come from the condition expression system. see chapter 4
Those errors come from the interpretation engine. (engine.cpp)
-
!SYNTAX ERRORThis happens when you wrote an instruction wrong. You may have mispelled it or the instruction is spelt right but the syntax of it is wrong. -
!PROGRAM ERRORIt happens when you attempt using the G instruction directly into the interpreter. -
!STOP AT <line>The running program stopped at the said line because of an error coming from an instruction. -
!INPUT ERRORIt happens if you write something else than a number when the ?* instruction prompts you a number.
The errors come directly from the interpreter (main.cpp)
-
!!SYNTAX ERRORYou typed an interpreter command wrong. (only happens in SAVE and LOAD)
When a file can't be read/written, fileman.cpp will output an error.
-
File Error! <file> couldn't be deleted/overwritten.Check if the file is currently used by another program or the drive where it's stored is in read-only. -
<file> exists! Program couldn't be saved.Will never happen, it happens when the overwrite variable in saveFile is on false. (when you save a file, the overwrite variable is on true) -
File Error! Unable to open file.fileman.cpp couldn't simply open the file.
-
File Error! <file> doesn't exist.The file you attempted to load doesn't exist.
When stringop.cpp shows an error, it will return 0 but the program will continue.
-
Syntax Errors
-
Pointer out of range.This happen when you put too many operators in one expression. -
Misplaced operator/variable.That means you misplaced an operator/variable. -
Invalid system variableThis is what that happens when you attempt using a non-existent system varible/modifier (see more in Variables/Modifiers) -
Unknown CharacterYou inserted a foreign character that has nothing to do in the expression.
-
When stringadd.cpp shows an error, it will return "!ERR" but the program will continue.
-
Syntax Errors
-
Misplaced quote/variable/operator.You misplaced a quote/varible/operator/modifier (misplaced variable also counts as modifier.) -
Unknown CharacterYou inserted a foreign character that has nothing to do in the expression. - wip.
-
Work in progress...