execute a piece of code and return a result:
execute a piece of code and return a result:
* if the code already returns a result, just keep it * if the code throws an Exception return an Error * if the code returns a value of type T, convert it to a result
execute a Result and return a Result even if there are specs2 exceptions
execute a Result and return a Result even if there are specs2 exceptions
execute a piece of code and return a result, either as a Left(failure) or a Right(value)
execute a piece of code and return a result, either as a Left(failure) or a Right(value)
execute a Property returning the value if it exists and a Success result otherwise
execute a Property returning the value if it exists and a Success result otherwise
this implicit allows the execution of a Result with an execute method
this implicit allows the execution of a Result with an execute method