Grade 10 Computer Lesson 10 Error Handling
Grade 10 Computer Lesson 10 Error Handling
Competency
Run unit tests and debugging tools in Visual Studio
Learning Target:
I can recognize syntax, logic and run-time errors and use
applicable debugging tools.
Errors in Visual Basic
• Syntax Error – a violation or error due to wrong spelling, symbols, spacing, and
other factors that make a code unacceptable in VB.
• Needs to be corrected first for the VB to run properly.
• Logic Error – a program bug that causes the application to produce an incorrect or
undesired output.
• Needs to do test data run and check if result is as expected.
• Runtime Error – detected during the execution of the program or when the program
is running. Missing files or links not available are examples of runtimes errors.
Syntax Errors
• Errors such as Syntax Errors
must be fixed.
• Syntax Errors are sometimes
called a compile error.
Syntax Errors
• Occurs when you violated a rule of VB language;
• For example incorrect punctuation, incorrectly referenced
item, or a misspelled word.
Syntax Errors
Syntax Errors