how to return error in python class code example Example: exception pyton print except Exception as e: print(e)