raise exception and throw code example Example: throwing an exception python raise Exception("message")