Manually raising (throwing) an exception,raise Exception('This is the exception you expect to handle')