結果 : handling errors in typescript