結果 : how to write an exception class in python