GoodType

org.scalactic.Good.GoodType
class GoodType[G]

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

Attributes

Source
Or.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

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

Attributes

Returns

a new Bad instance containing the passed b value

Source
Or.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
Or.scala