TrySugar

object TrySugar extends TrySugar

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

Companion:
class
Source:
TrySugar.scala
trait TrySugar
class Object
trait Matchable
class Any

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.

Inherited from:
TrySugar
Source:
TrySugar.scala

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.

Inherited from:
TrySugar
Source:
TrySugar.scala