TypeScriptPromise/asynctry/catch async
async/await

try/catch asyncPromise/async

at

async/awaitでエラーを処理します。

構文

try { await fn(); } catch (e) { }