implicit final class RightBiasedEither[A, B] extends AnyVal
- Source
- BackendReporting.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- RightBiasedEither
- AnyVal
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
def
get: B
Get the value, fail with an assertion if this is an error.
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
orThrow: B
Get the right value of an
Either
by throwing a potential error message.Get the right value of an
Either
by throwing a potential error message. Can simplify the implementation of methods that act on multipleEither
instances. Instead of flat-mapping, the first error can be collected astryEither { eitherOne.orThrow .... eitherTwo.orThrow ... eitherThree.orThrow }
- val v: Either[A, B]
- def withFilter(f: (B) ⇒ Boolean)(implicit empty: A): Either[A, B]
The Scala compiler and reflection APIs.