object Attempt extends Serializable
- Alphabetic
- By Inheritance
- Attempt
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def failure[A](err: Err): Attempt[A]
Creates an unsuccessful attempt.
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromEither[A](e: Either[Err, A]): Attempt[A]
Creates an attempt from the supplied either.
- def fromErrOption[A](opt: Option[Err], ifNone: => A): Attempt[A]
Creates an attempt from the supplied option.
Creates an attempt from the supplied option. The
ifNone
value is used as the success value ifopt
isNone
. - def fromOption[A](opt: Option[A], ifNone: => Err): Attempt[A]
Creates an attempt from the supplied option.
Creates an attempt from the supplied option. The
ifNone
value is used as the error message ifopt
isNone
. - def fromTry[A](t: Try[A]): Attempt[A]
Creates a attempt from a try.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def guard(condition: => Boolean, err: => Err): Attempt[Unit]
Creates a successful attempt if the condition succeeds otherwise create a unsuccessful attempt.
- def guard(condition: => Boolean, err: String): Attempt[Unit]
Creates a successful attempt if the condition succeeds otherwise create a unsuccessful attempt.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def successful[A](a: A): Attempt[A]
Creates a successful attempt.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()