1. 如果我們的問題是目前python 內建的exception 沒有 的類別如何處理 → Raise 自己的 exception
    1. customized your own exception
    2. 當有人誤用function 時 可設計 try except catch error
    3. exception 是從 BaseException Class繼承而來. 所以my_own_error 要inharit
    4. myerror → lookup error → BaseException
    5. myerror → BaseException
    6. use Python Keyword “ Raise”

Untitled