Attributes
Members list
Grouped members
Constructing Results through evaluating
Evaluates body, returning the output as an Ok value.
Evaluates body, returning the output as an Ok value.
Within body:
- eval.ok can be used to unwrap Result values, with the body short-circuiting back with the error.
- eval.raise can be used to quickly short-circuit with an error.
Attributes
Operations that are valid under a Result.apply scope.
Operations that are valid under a Result.apply scope.
Attributes
- See also
-
eval.ok, eval.raise and eval.break
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
eval.type
Constructing Results through other means
Evaluates body, catching exceptions accepted by catcher as errors.
Evaluates body, catching exceptions accepted by catcher as errors.
Attributes
- See also
-
Try.apply for a similar method returning scala.util.Try, but works on all NonFatal exceptions.
Extensions: value accessors and disambiguators
Returns the Ok value from the result, and throws an exception if it is an error.
Returns the Ok value from the result, and throws an exception if it is an error.
Attributes
- Throws
-
ResultIsErrException
if the result is an Err.
Unwraps the inner value, returing null if there is an error.
Unwraps the inner value, returing null if there is an error.
Attributes
Extensions: transformers to different types under the result
Extensions: combining multiple results into a new one
Extensions: conversions into other types
Conversionerts the result into an Either.
Conversionerts the result into an Either.
Attributes
Conversionerts the result to scala.util.Try.
Conversionerts the result to scala.util.Try.
Attributes
Type members
Classlikes
An exception obtained by calling get on a Result.Err.
An exception obtained by calling get on a Result.Err.
Value parameters
- error
-
the error value that was enclosed in the variant.
Attributes
- Supertypes
-
trait Producttrait Equalsclass NoSuchElementExceptionclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror