Class/Object

rapture.core

Result

Related Docs: object Result | package core

Permalink

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
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val answer: T

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

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

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

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

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

    Permalink
  11. def exceptions: Seq[Exception]

    Permalink
  12. def exists(p: (T) ⇒ Boolean): Boolean

    Permalink

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

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

    Permalink

    Filter on the answer of this result.

  14. def finalize(): Unit

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

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

    Permalink

    Catamorphism.

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

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

    Permalink

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

  18. def get: T

    Permalink
  19. final def getClass(): Class[_]

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

    Permalink

    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 |

  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. def isAnswer: Boolean

    Permalink

    Return true if this result is an Answer.

  23. def isErrata: Boolean

    Permalink

    Return true if this result contains errors.

  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. def isUnforeseen: Boolean

    Permalink

    Return true if this result is Unforeseen.

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

    Permalink
  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

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

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

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

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

    Permalink

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

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

    Permalink

    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

  35. def toOption: Option[T]

    Permalink

    Return None or a Some of the answer.

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

  36. def toString(): String

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

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

    Permalink

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

  39. final def wait(): Unit

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

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

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

    Permalink

    Alias for filter

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

    Permalink

    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