Typescript Async Await Error Handling In Java