結果 : how to raise a generic error in python