Successful

case
class Successful[A](value: A) extends Attempt[A]

Successful attempt.

class Attempt[A]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def flatMap[B](f: A => Attempt[B]): Attempt[B]
def flatten[B](using ev: A <:< Attempt[B]): Attempt[B]
def fold[B](ifFailure: Err => B, ifSuccessful: A => B): B
def getOrElse[B >: A](default: => B): B
def isSuccessful: Boolean
def map[B](f: A => B): Attempt[B]
def mapErr(f: Err => Err): Attempt[A]
def orElse[B >: A](fallback: => Attempt[B]): Attempt[B]
def recover[B >: A](f: PartialFunction[Err, B]): Attempt[B]
def recoverWith[B >: A](f: PartialFunction[Err, Attempt[B]]): Attempt[B]
def require: A
def toEither: Right[Err, A]
def toOption: Some[A]
def toTry: Try[A]

Inherited methods

def isFailure: Boolean

True if attempt was not successful.

True if attempt was not successful.

Inherited from
Attempt
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product