Archie
03/29/2020, 3:36 PMEitherT<SomeLimitedErrorType, F, SomeObject>
and I would like to recover when Either
returns Either.left(SomeLimitedErrorType)
but everytime I do eitherTobject.handleErrorWith { cause -> // TODO }
the cause
is of type throwable
. I though it should be my stated left value which is SomeLimitedErrorType
? Am I doing it wrong?simon.vergauwen
03/30/2020, 7:14 AMhandleErrorWith
E
. Could you share some code?Jannis
03/30/2020, 10:07 AMMonadError
for EitherT
to work with E
instead of lifting trough and using Throwable
: https://github.com/arrow-kt/arrow-incubator/pull/64
So this will only work properly in the current snapshots for 0.10.5 and forward...Archie
03/30/2020, 10:23 AM0.10.5
. It is now working fine. I swear yesterday it was returning a Throwable
but when I opened the project today, its now returning my error type. I apologize for this. Thank you guys.simon.vergauwen
03/30/2020, 10:24 AM