... >> Computer Science >> Programming >> Try/Catch Statements
Definition: The first block of the try/catch statement (“try”) contains the code you want to execute. The second block (“catch”) contains error-recovery code that should be executed if an exception is thrown. So, think of this as saying, “Try to execute these statements, but if something goes wrong, I’m going to give you some other code in the catch part that you should execute if an error occurs.”
Source: Reges & Stepp
Example: Example sentence for context: "To actually handle the potential error, you’ll want to use something called a try/catch statement."