TrySugar

org.scalactic.TrySugar
See theTrySugar companion trait
object TrySugar extends TrySugar

Companion object for TrySugar enabling its members to be imported as an alternative to mixing them in.

Attributes

Companion
trait
Source
TrySugar.scala
Graph
Supertypes
trait TrySugar
class Object
trait Matchable
class Any
Self type
TrySugar.type

Members list

Type members

Inherited classlikes

implicit class Tryizer[T](theTry: Try[T])

Implicit class that adds a toOr method to Try, which converts Success to Good, and Failure to Bad, as well as a validation method, which takes one or more functions that validate the Future's value.

Implicit class that adds a toOr method to Try, which converts Success to Good, and Failure to Bad, as well as a validation method, which takes one or more functions that validate the Future's value.

See the main documentation for trait `TrySugar` for more detail and examples.

Value parameters

theTry

the Try to which to add toOr and validating methods.

Attributes

Inherited from:
TrySugar
Source
TrySugar.scala
Supertypes
class Object
trait Matchable
class Any

Implicits

Inherited implicits

final implicit def Tryizer[T](theTry: Try[T]): Tryizer[T]

Implicit class that adds a toOr method to Try, which converts Success to Good, and Failure to Bad, as well as a validation method, which takes one or more functions that validate the Future's value.

Implicit class that adds a toOr method to Try, which converts Success to Good, and Failure to Bad, as well as a validation method, which takes one or more functions that validate the Future's value.

See the main documentation for trait `TrySugar` for more detail and examples.

Value parameters

theTry

the Try to which to add toOr and validating methods.

Attributes

Inherited from:
TrySugar
Source
TrySugar.scala