o

kantan.csv

DecodeResult

object DecodeResult extends WithError[DecodeError]

Provides convenience methods for creating instances of DecodeResult.

Source
DecodeResult.scala
Linear Supertypes
WithError[DecodeError], WithDefault[DecodeError], Simple[DecodeError], Simple[DecodeError], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DecodeResult
  2. WithError
  3. WithDefault
  4. Simple
  5. Simple
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def apply[S](s: => S): Either[DecodeError, S]
    Definition Classes
    WithDefault
    Annotations
    @inline()
  2. def failure(f: DecodeError): Either[DecodeError, Nothing]
    Definition Classes
    Simple
    Annotations
    @inline()
  3. def fromThrowable(t: Throwable): DecodeError
    Definition Classes
    WithError → WithDefault
  4. def fromTry[S](t: Try[S]): Either[DecodeError, S]
    Definition Classes
    WithDefault
    Annotations
    @inline()
  5. def outOfBounds(index: Int): DecodeResult[Nothing]

    Creates a new DecodeResult failure wrapping a DecodeError.OutOfBounds error.

    Creates a new DecodeResult failure wrapping a DecodeError.OutOfBounds error.

    Example:
    1. scala> DecodeResult.outOfBounds(1)
      res0: DecodeResult[Nothing] = Left(OutOfBounds: 1 is not a valid index)
  6. def sequence[S, M[X] <: IterableOnce[X]](rs: M[Either[DecodeError, S]])(implicit bf: BuildFrom[M[Either[DecodeError, S]], S, M[S]]): Either[DecodeError, M[S]]
    Definition Classes
    Simple
    Annotations
    @inline()
  7. def success[S](s: S): Either[DecodeError, S]
    Definition Classes
    Simple
    Annotations
    @inline()
  8. def typeError(e: Exception): DecodeResult[Nothing]

    Creates a new DecodeResult failure wrapping a DecodeError.TypeError error.

    Creates a new DecodeResult failure wrapping a DecodeError.TypeError error.

    Example:
    1. scala> DecodeResult.typeError(new Exception("not a valid int"))
      res0: DecodeResult[Nothing] = Left(TypeError: not a valid int)
  9. def typeError(str: String): DecodeResult[Nothing]

    Creates a new DecodeResult failure wrapping a DecodeError.TypeError error.

    Creates a new DecodeResult failure wrapping a DecodeError.TypeError error.

    Example:
    1. scala> DecodeResult.typeError("not a valid int")
      res0: DecodeResult[Nothing] = Left(TypeError: not a valid int)