Language
Version: 3.4.3
Categories
-
User Program Communication
-
Variables
-
Control Flow
-
Functions
-
Object Oriented Programming
Search Results
Searching for: Throwing an Exception in Python
Try Catch Block
Language: Python
A try-catch block is used to mitigate errors in code and prevent program crashing during runtime. It 'tries' a block of code that could give an error. If the error (exception) is raised, it will execute a different block of code rather than crash the program.