Exeption Handling
The Prism language itself handles various syntax and logic errors in the code.
Error Message format Prism errors are simple strings of characters displayed on the screen each time they are detected.
[
Message Example : "Syntax Error: Function not declared properly"
]Error Code Prism errors are accompanied by a value feedback.
[
Message Example : "Syntax Error: Function not declared properly",
Return Value: 84
]Error Details This is a list of all the errors currently handled by Prism:
Function not well declared
[
Message Error : "Syntax Error: Function not declared properly",
Return Value: 84
]Parenthesis or curly bracket bad placed or missed
[
Message Error : "Syntax Error: Curly bracket or parenthesis not properly placed in function main",
Return Value: 84
]No main in the program
Use of undeclared function
None existing variable
Here is a list of all the remaining errors to be integrated into the language:
Check good instruction line
Check for semicolon at the end of instruction line
Check for libraries import
Last updated