rapture.core

Result

sealed abstract class Result[+T, E <: Exception] extends AnyRef

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Result
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Result(answer: T, errors: Seq[(ClassTag[_], (String, Exception))], unforeseen: Option[Throwable] = scala.None)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val answer: T

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def errata[E2 >: E](implicit arg0: ClassTag[E2]): Seq[E2]

  12. val errors: Seq[(ClassTag[_], (String, Exception))]

  13. def exceptions: Seq[Exception]

  14. def exists(p: (T) ⇒ Boolean): Boolean

    Return true if this result is an answer satisfying the given predicate.

  15. def filter(p: (T) ⇒ Boolean): Result[T, E with NotMatchingFilter]

    Filter on the answer of this result.

  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def flatMap[T2, E2 <: Exception](fn: (T) ⇒ Result[T2, E2]): Result[T2, E with E2]

  18. def fold[X](l: (T) ⇒ X, r: (Seq[(ClassTag[_], (String, Exception))]) ⇒ X): X

    Catamorphism.

    Catamorphism. Run the first given function if answer, otherwise, the second given function over the errata.

  19. def forall(p: (T) ⇒ Boolean): Boolean

    Return true if this result is an errata or the answer satisfies the given predicate.

  20. def get: T

  21. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  22. def getOrElse[T2 >: T](x: ⇒ T2): T2

    Return the answer of this result or the given default if errata.

    Return the answer of this result or the given default if errata. Alias for |

  23. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  24. def isAnswer: Boolean

    Return true if this result is an Answer.

  25. def isErrata: Boolean

    Return true if this result contains errors.

  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. def isUnforeseen: Boolean

    Return true if this result is Unforeseen.

  28. def map[T2](fn: (T) ⇒ T2): Product with Serializable with Result[T2, E]

  29. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  32. def reconcile[E2, E3 <: Exception](handlers: Each[E2, E3]*): Seq[E3]

  33. def resolve[E2, T2 >: T](handlers: Each[E2, T2]*)(implicit ev: <:<[E2, E]): Resolved[T2, Nothing]

  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  35. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, T, Col[T]]): Col[T]

    Return a collection containing -- if the result was successful -- the answer.

  36. def toEither: Either[Seq[(ClassTag[_], (String, Exception))], T]

    Convert to a core scala.Either at your own peril.

    Convert to a core scala.Either at your own peril. blows up if an unforeseen exception is found

  37. def toOption: Option[T]

    Return None or a Some of the answer.

    Return None or a Some of the answer. Useful to sweep errors under the carpet.

  38. def toString(): String

    Definition Classes
    AnyRef → Any
  39. val unforeseen: Option[Throwable]

  40. def valueOr[T2 >: T](x: (Seq[(ClassTag[_], (String, Exception))]) ⇒ T2): T2

    Return the answer of this result or run the given function on the errata.

  41. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. def withFilter(p: (T) ⇒ Boolean): Result[T, E with NotMatchingFilter]

    Alias for filter

  45. def |[T2 >: T](x: ⇒ T2): T2

    Return the answer value of this result or the given default if errata.

    Return the answer value of this result or the given default if errata. Alias for getOrElse

Inherited from AnyRef

Inherited from Any

Ungrouped