Java Custom Exception Class In Geeksforgeeks In Python