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