Skip to content

Instantly share code, notes, and snippets.

@boysbee
Created June 13, 2019 16:44
Show Gist options
  • Save boysbee/649e4e48b4d12e5932a62556cf3f5117 to your computer and use it in GitHub Desktop.
Save boysbee/649e4e48b4d12e5932a62556cf3f5117 to your computer and use it in GitHub Desktop.
runtime error when use either.handleErrorWith from applicativeError
// found runtime error, java.lang.NoSuchMethodError: arrow.core.EitherKt.handleErrorWith(Larrow/Kind;Lkotlin/jvm/functions/Function1;)Larrow/core/Either;
// will back to find more information to fix this issue agian.
// describe("Either.handleErrorWith") {
// it("""should be return Either.Right when Either.Left<E>.handleErrorWith to recover error case""") {
//
// val result:Either<Throwable, String> = Either.Left(BadRequestException()).handleErrorWith { Either.Right("Changed to success") }
// assertSoftly {
// result.isLeft() shouldNotBe true
// }
// }
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment