Пример JavaScript: try..catch..throw