Returns the Try
passed to the constructor as a Failure
, if it is a Failure
, else throws TestFailedException
with
a detail message indicating the Try
was not a Failure
.
Returns the Try
passed to the constructor as a Failure
, if it is a Failure
, else throws TestFailedException
with
a detail message indicating the Try
was not a Failure
.
Returns the Try
passed to the constructor as a Success
, if it is a Success
, else throws TestFailedException
with
a detail message indicating the Try
was not a Success
.
Returns the Try
passed to the constructor as a Success
, if it is a Success
, else throws TestFailedException
with
a detail message indicating the Try
was not a Success
.
Wrapper class that adds
success
andfailure
methods toscala.util.Try
, allowing you to make statements like: