python raise exception for string code example Example: throwing an exception python raise Exception("message")