Typescript Throw Catch