cherryramatisdev / monadic-exceptions

A gem to work as a bridge between exceptions and result monads

Home Page:https://rubygems.org/gems/monadic-exceptions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Monadic Exceptions

This gem aims to provide an interface from plain ruby exceptions to monads(using the dry-monad gem)

Initial goals for this gem

  • Initially I'm planning just to provide a interface between Exception -> Result[Failure(), Success()] where I try to provide as much information I can get from that exception so it's easier for you to manage it.

Disclaimers

Today we only support Proc as a parameter to the from_exception method because I still didn't discover a nice way to manage method references.

About

A gem to work as a bridge between exceptions and result monads

https://rubygems.org/gems/monadic-exceptions

License:MIT License


Languages

Language:Ruby 100.0%