Skip to content

Error-handling and other function utilities for better user and developer experience.

License

Notifications You must be signed in to change notification settings

ivangeorgiew/ropework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

327 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ropework

Work in progress.

Tips

The onCatch function should default to () => RETHROW.

If we want to handle on case by case basis, onCatch can be ({ error }) => error.
And then we write const result = triedFunc(); if (result instanceof Error) ...

In the other cases it depends and you should write custom code for the onCatch

About

Error-handling and other function utilities for better user and developer experience.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published