Glossary

Q8: A

The class must inherit from `Exception` (or a subclass of `Exception`). Without inheritance, Python will not treat it as a true exception and you cannot raise it with `raise InvoiceError(...)` in a way that integrates with the exception system.

Learn More

Related Terms