How to raise errors?

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#

Here is the screencast. These are the slides.

Quiz#