Created
June 13, 2019 16:44
-
-
Save boysbee/649e4e48b4d12e5932a62556cf3f5117 to your computer and use it in GitHub Desktop.
runtime error when use either.handleErrorWith from applicativeError
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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