結果 : how to throw custom errors in python