Python ships with a ton of built-in exception classes to cover a lot of error situations so that you do not have to define your own. These classes are divided into Base error classes, from which other error classes are defined, and Concrete error classes, which define the exceptions you are more likely to see from time to time.
Note
Built-in exception classes cover many error situations so that you do not have to define your own. For more information on built-in exceptions, visit https://docs.python.org/3/library/exceptions.html.
We shall cover more on the Exception base class and its uses later on in this chapter. For now, let's take a look at some common error and exception classes and understand what they mean.