"""Defines a few application-specific exceptions for Pythonic code.""" class UmbrellaNotFoundError(Exception): """For when an umbrella with required serial is not found in database.""" pass class UmbrellaStatusError(Exception): """For when the umbrella to be lent is not available, or when an umbrella to be returned has never been taken away. Most likely duplicate or erroneous answer sheets submitted by user. """ pass