Fail

kyo.Result$package.Result.Fail
See theFail companion class
object Fail

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Fail.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def unapply[E, A](result: Result[E, A]): Ops[E]

Extracts the error value from a Fail Result.

Extracts the error value from a Fail Result.

Type parameters

A

The type of the successful value (not used in this case)

E

The type of the error

Value parameters

result

The Result to extract from

Attributes

Returns

A Maybe containing the error value, or empty for non-Fail Results