Typescript Async Await Exception Handling Java