This trait executes a Result and returns an appropriate value when a specs2 exception is thrown
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object ResultExecution.type
- Self type
Members list
Value members
Concrete methods
execute a Result and rethrow any exception or throws an exception if it is not a success
execute a Result and rethrow any exception or throws an exception if it is not a success
Attributes
turn an exception into a result
turn an exception into a result
Attributes
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
Attributes
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
Attributes
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)
Attributes
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
Attributes
execute a result and return either as a Left(result) if something was thrown or a Right(result)
execute a result and return either as a Left(result) if something was thrown or a Right(result)
Attributes
handle result exceptions and do not rethrow them
handle result exceptions and do not rethrow them