Trait

cats.data

ValidatedFunctions

Related Doc: package data

Permalink

trait ValidatedFunctions extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ValidatedFunctions
  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): Validated[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 invalid side of the resulting Validated.

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

    For example:

    scala> Validated.catchOnly[NumberFormatException] { "foo".toInt }
    res0: Validated[NumberFormatException, Int] = Invalid(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]): Validated[A, B]

    Permalink

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

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

    Permalink

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

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

    Permalink

    Converts a Try[A] to a Validated[Throwable, A].

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def invalid[A, B](a: A): Validated[A, B]

    Permalink
  17. def invalidNel[A, B](a: A): ValidatedNel[A, B]

    Permalink
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. def valid[A, B](b: B): Validated[A, B]

    Permalink
  25. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped