Failure

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

Failed attempt.

Source:
Attempt.scala
class Attempt[Nothing]
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 map[B](f: Nothing => B): Attempt[B]
def mapErr(f: Err => Err): Attempt[Nothing]
def orElse[B](fallback: => Attempt[B]): Attempt[B]
def require: Nothing
def toEither: Left[Err, Nothing]
def toOption: None.type
def toTry: Try[Nothing]

Inherited methods

True if attempt was not successful.

True if attempt was not successful.

Inherited from:
Attempt
Source:
Attempt.scala
Inherited from:
Product