object Attempt extends Serializable
- Alphabetic
- By Inheritance
- Attempt
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
final
case class
Failure
(cause: Err) extends Attempt[Nothing] with Product with Serializable
Failed attempt.
-
final
case class
Successful
[A](value: A) extends Attempt[A] with Product with Serializable
Successful attempt.
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
failure[A](err: Err): Attempt[A]
Creates an unsuccessful attempt.
-
def
finalize(): Unit
- Attributes
- protected[java.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
. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )