GoodType

class GoodType[G]

Supports the syntax that enables Bad instances to be created with a specific Good type.

Source:
Or.scala
class Object
trait Matchable
class Any

Value members

Concrete methods

def orBad[B](b: B): Or[G, B]

Factory method for Bad instances whose Good type is specified by the type parameter of this GoodType.

Factory method for Bad instances whose Good type is specified by the type parameter of this GoodType.

This method enables this syntax:

Good[Int].orBad("oops")
         ^
Value parameters:
b

the “bad” value

Returns:

a new Bad instance containing the passed b value

Source:
Or.scala
override def toString: String
Definition Classes
Any
Source:
Or.scala