Dec 7, 2020
ConnectionIO
implements MonadError
, so you can return a failed effect from your implementation, e.g.:
new RuntimeException("DB error").raiseError[ConnectionIO, Unit]
ConnectionIO
implements MonadError
, so you can return a failed effect from your implementation, e.g.:
new RuntimeException("DB error").raiseError[ConnectionIO, Unit]
Software engineer, Functional Programming and Scala enthusiast, SoftwareMill co-founder