結果 : how to handle throw error in javascript