Recall
How to raise exceptions
Recall: Raising Exceptions
Communicate something: decide to deliberately stop execution of code by raising exception
```python
raise<some_exception>(message)
~~~</some_exception>
What is the purpose of a try/except block?
Instead of having a ValueError message and the program crashing.
Instead, ValueError will be caught by the except ValueError’ instruction and whatever is written inside will be executed
try/except blocks allow us to try some code, and if an exception is raised we can catch it and execute different codeWhat are the steps to handle unavoidable errors?
What is the default except block?
What to do with multiple exceptions?
For multiple exceptions, want to write single except clause to handle multiple exceptions, you can do so by listing all the exceptions in a tuple
General Error Catching:
```python
try:
# code might be problematic
except:
# what to do in case of issue
#Whatever comes after
~~~
What is the finally block?
finally block can be addedreturn/continue/break statement in any try/except block, or if an exception occurs in except block