How to raise errors?#

Learning Objectives#

After working through this topic, you should be able to:

  • Use the raise keyword to raise errors

  • Decide when to use built-in vs. custom exceptions

  • Define custom exceptions

  • Explain the concept of fail-functions

Materials#

Video:

Download the slides.

Quiz#