How to raise errors?#
Learning Objectives#
After working through this topic, you should be able to:
Use the
raise
keyword to raise errorsDecide when to use built-in vs. custom exceptions
Define custom exceptions
Explain the concept of
fail-functions
Materials#
Video:
Download the slides.