Failure

case
class Failure(cause: Err) extends Attempt[Nothing]

Failed attempt.

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

Value members

Concrete methods

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

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