---
title: "Comment by sammo90 on \"Error Handling in Cats Effect [Part-9]\" | Hashnode"
description: "We can use the method attempt to lift the value of an IO into an Either. If the IO failed, it lifts the value as Right, otherwise into a Left: vice versa!"
url: "https://hashnode.com/posts/error-handling-in-cats-effect-part-9/64452d9126baa38eee9138f2/comment/6a003ec9e3eebc2e204fa2b4"
---

[Discussion](https://hashnode.com/posts/error-handling-in-cats-effect-part-9/64452d9126baa38eee9138f2)

Comment [Error Handling in Cats Effect \[Part-9\]](https://hashnode.com/posts/error-handling-in-cats-effect-part-9/64452d9126baa38eee9138f2)

[sammo90](https://hashnode.com/@sammo90)

[May 10](https://hashnode.com/posts/error-handling-in-cats-effect-part-9/64452d9126baa38eee9138f2/comment/6a003ec9e3eebc2e204fa2b4)

We can use the method attempt to lift the value of an IO into an Either. If the IO failed, it lifts the value as Right, otherwise into a Left:

vice versa!

[Yadukrishnan](https://hashnode.com/@yadukrishnan)

[May 15](https://hashnode.com/posts/error-handling-in-cats-effect-part-9/64452d9126baa38eee9138f2/comment/6a003ec9e3eebc2e204fa2b4#reply-6a07307a73afc88757775df6)

My bad! Thanks. Corrected it.
