https://nuancesprog.ru/p/18692/
Обработка ошибок в TypeScript без try/catch