throwing an exception on purpose python code example Example: throwing an exception python raise Exception("message")