final class TryOps[A] extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- TryOps
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
liftTo[F[_]](implicit F: ApplicativeError[F, Throwable]): F[A]
lift the
try
into aF[_]
withApplicativeError[F, Throwable]
instancelift the
try
into aF[_]
withApplicativeError[F, Throwable]
instancescala> import cats.implicits._ scala> import util.Try scala> val s: Try[Int] = Try(3) scala> s.liftTo[Either[Throwable, ?]] res0: Either[Throwable, Int] = Right(3) scala> val f: Try[Int] = Try(throw new Throwable("boo")) scala> f.liftTo[Either[Throwable, ?]] res0: Either[Throwable, Int] = Left(java.lang.Throwable: boo)
-
def
toString(): String
- Definition Classes
- Any