Unexpected Monad. Is Safe Error Handling Possible in JS/TS? by Artem Kobzar and Dmitry Makhnev @jsconf_
Unexpected Monad. Is Safe Error Handling Possible in JS/TS? by Artem Kobzar and Dmitry Makhnev  @jsconf_
Uploaded July 2024 | Updated November 2026, 1 week ago
Error handling is an extremely hard part of every JavaScript project that can produce a lot of bugs. Usually, developers use just the try/catch as a standard approach for the error handling, which is not so ideal solution because this statement catches anything which was thrown by the “throw” statement, as results developer:

- need extra conditions for handling restricted classes of exceptions;
- should rethrow errors or it can be eaten up;
- can’t separate errors and exceptions;

In this talk, you’ll learn how to implement safe error handling (without mentioned problems) in a project and with perks like typed errors inside handlers, errors documentation of functions/methods without JSDoc and comments, and the ability to log your errors without a break of the error handling flow.

jsconfbp.com/speakers/artem-and-dmitry

Artem is working for JetBrains on the compiler from Kotlin to WebAssembly. Also, he's helping with the SourceMap Specification as an invited expert in TC39. At night (if he's not fixing production), he likes lifting heavy weights in the gym or/and drinking good Chinese tea.

Dmitry is a software developer at WebStorm. Before almost 14 years he was a frontend developer. Ex-member of HolyJS conference selection committee, co-organizer of JetBrains JavaScript Day. He loves his son, Chinese tea, South Holland, bicycle rides, great technical talks and art (Impressionism++).
Unexpected Monad. Is Safe Error Handling Possible in JS/TS? by Artem Kobzar and Dmitry MakhnevHave a better developer experience using code generators - Eder Octavio Díaz RazónEnforcing coding standards in a JS library by Sebastiano Armeli at JSConf Budapest 2015Typed JavaScript? For real? The “type annotations” proposal and what it’s all about by Gil TayarShine Theory and the Berlin Community by Carolyn Stransky | Community Lounge | JSConf EU 2019How Community Made Me a #T1DCyborg by Jan Schenk | JSConf EU 2019History of Art vs. Web Design vs. Frontend Development by Nils BinderFrom JavaScript to React - Leonidas Esteban (Spanish language)Teaching to Empower: How to Support Junior Engineers - Rizel ScarlettDecoding Perplexing TypeScript by Daria CarawayYour Tests Lack Vision: Adding Eyes to Your Automation Framework - Angie Jones | JSConf Hawaii 2020GoogleIndiaScholars by Arshi Saleh | Community Lounge | JSConf EU 2019
JSConf |

Unexpected Monad. Is Safe Error Handling Possible in JS/TS? by Artem Kobzar and Dmitry Makhnev

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER