Add raise() exceptions in try-except blocks to control error handling.
Add raise() exceptions in try-except blocks to control error handling.