Syntax error
Syntax errors (violations of the rules of a programming language)
A syntax error occurs when the Visual Basic compiler cannot understand a statement that you have written. Syntax errors can also occur when statements do not appear in the order.
Eg: A Procedure block cannot appear directly within a Namespace block. If an application has syntax errors, the application cannot be compiled. As a result, the program cannot be executed.
Run-time errorRuntime errors are not detected when a project is compiled. Rather, run-time errors occur as an application executes and an exception is thrown.
Eg: if some fields are updated in a trigger and a run-time error occurs while other fields have not been updated. When a trigger is entered, a write transaction begins. If a run-time error occurs inside the trigger, the write transaction is rolled back and the execution of the trigger is terminated.
Logic errorA program logic error is an error in an application that compiles and runs without causing run-time errors, but fails to function as intended.A logic error occurs when an application runs but produces incorrect results.
Eg: if you intended to compute the area of a rectangle, you would multiply the length of the rectangle by its width. If you divided the numbers instead of multiplying, the application would produce an incorrect answer, creating a logic error.
What types of errors does the 'Error List' window display?
Syntax errors
No comments:
Post a Comment