GIS5103 Module 3: Debugging and Error Handling

     Module 3 in GIS Programming focused on debugging and handling errors within scripting. We used our previously gathered knowledge in this course to supplement the objective of this lab. We were given (3) separate scripts to determine what is the error in each, how to fix the errors, and we were also given the opportunity to use a try-except statement to allow for a script to run with an error. It might seem like you would want all scripts not to have error -- sometimes we would want to have the script run with that error as an exception, but print the resulting error statement that arises. 

Our results are as follows: 

Script 1: 

Script 1 Results


Script 2:
Script 2 Results

Script 3:
Script 3 Results

In Script 3, we utilized the try-except statement to indicate the error in Part A of this task - see below for a flowchart of the implemented statement: 
Try-except statement flowchart

Part A in Script 3 wanted us to be able to use the try-except statement to allow the script to run and print the error message that stated the problem with the script. Part B in Script 3 was meant to run successfully without error. 

General Notes:
- Notepad++ not same as Notebook.
    Notepad++ is just a text editing software. 

- Traceback error(s) means the script has been sent off to the interpreter and returned.
- Syntax error means not sent to interpreter yet-




Comments

Popular posts from this blog

GIS5007 Orientation: About Me

GIS 5007 Module 6: Isarithmic Mapping

GIS5935 Module 2.1: Surfaces - TINs and DEMs