Trait

cats.data

XorFunctions

Related Doc: package data

Permalink

trait XorFunctions extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. XorFunctions
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final class CatchOnlyPartiallyApplied[T] extends AnyRef

    Permalink

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def catchNonFatal[A](f: ⇒ A): Xor[Throwable, A]

    Permalink
  6. def catchOnly[T >: Null <: Throwable]: CatchOnlyPartiallyApplied[T]

    Permalink

    Evaluates the specified block, catching exceptions of the specified type and returning them on the left side of the resulting Xor.

    Evaluates the specified block, catching exceptions of the specified type and returning them on the left side of the resulting Xor. Uncaught exceptions are propagated.

    For example:

    scala> Xor.catchOnly[NumberFormatException] { "foo".toInt }
    res0: Xor[NumberFormatException, Int] = Left(java.lang.NumberFormatException: For input string: "foo")
  7. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def fromEither[A, B](e: Either[A, B]): Xor[A, B]

    Permalink

    Converts an Either[A, B] to an A Xor B.

  12. def fromOption[A, B](o: Option[B], ifNone: ⇒ A): Xor[A, B]

    Permalink

    Converts an Option[B] to an A Xor B, where the provided ifNone values is returned on the left of the Xor when the specified Option is None.

  13. def fromTry[A](t: Try[A]): Xor[Throwable, A]

    Permalink

    Converts a Try[A] to a Throwable Xor A.

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def left[A, B](a: A): Xor[A, B]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  21. def right[A, B](b: B): Xor[A, B]

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

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped