Companion for Attempt.
Attributes
- Companion:
- class
- Source:
- Attempt.scala
- Graph
- Supertypes
- Self type
- Attempt.type
Members list
Type members
Classlikes
Failed attempt.
Failed attempt.
Attributes
- Source:
- Attempt.scala
- Graph
- Supertypes
- class Attempt[Nothing]trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Successful attempt.
Inherited types
The names of the product elements
The name of the type
Value members
Concrete methods
Creates an unsuccessful attempt.
Creates an attempt from the supplied either.
Creates an attempt from the supplied option. The ifNone
value is used as the success value if opt
is None
.
Creates an attempt from the supplied option. The ifNone
value is used as the success value if opt
is None
.
Attributes
- Source:
- Attempt.scala
Creates an attempt from the supplied option. The ifNone
value is used as the error message if opt
is None
.
Creates an attempt from the supplied option. The ifNone
value is used as the error message if opt
is None
.
Attributes
- Source:
- Attempt.scala
Creates a attempt from a try.
Creates a successful attempt if the condition succeeds otherwise create a unsuccessful attempt.
Creates a successful attempt if the condition succeeds otherwise create a unsuccessful attempt.
Attributes
- Source:
- Attempt.scala
Creates a successful attempt if the condition succeeds otherwise create a unsuccessful attempt.
Creates a successful attempt if the condition succeeds otherwise create a unsuccessful attempt.
Attributes
- Source:
- Attempt.scala
Creates a successful attempt.