結果 : how to throw custom error in python