Companion object for TrySugar
enabling its members to be
imported as an alternative to mixing them in.
- Companion:
- class
- Source:
- TrySugar.scala
Type members
Inherited classlikes
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 addtoOr
andvalidating
methods.
- Inherited from:
- TrySugar
- Source:
- TrySugar.scala
Implicits
Inherited implicits
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 addtoOr
andvalidating
methods.
- Inherited from:
- TrySugar
- Source:
- TrySugar.scala