Packages

package partial

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. trait AsResult[F[_]] extends AnyRef

    Utility allowing conversion from some type into io.scalaland.chimney.partial.Result.

    Utility allowing conversion from some type into io.scalaland.chimney.partial.Result.

    Should define logic what is considered successful value, what is considered failed value and how to convert it into io.scalaland.chimney.partial.Result.

    F

    generic data type which should be convertible to Result for all possible values

    Annotations
    @FunctionalInterface()
    Since

    0.8.5

    See also

    https://chimney.readthedocs.io/supported-transformations/#total-transformers-vs-partialtransformers

    https://chimney.readthedocs.io/supported-transformations/#partialresult-utilities

  2. final case class Error(message: ErrorMessage, path: Path = Path.Empty) extends Product with Serializable

    Data structure for representing path-annotated error

    Data structure for representing path-annotated error

    message

    error message

    path

    error path annotation

    Since

    0.7.0

  3. sealed trait ErrorMessage extends AnyRef

    Representation of partial transformation error message

    Representation of partial transformation error message

    Since

    0.7.0

  4. final case class Path(elements: List[PathElement]) extends AnyVal with Product with Serializable

    Data structure for representing path in a (possibly) nested object structure.

    Data structure for representing path in a (possibly) nested object structure.

    elements

    list of path elements

    Since

    0.7.0

  5. sealed trait PathElement extends AnyRef

    Data type for representing path element in a (possibly) nested object structure.

    Data type for representing path element in a (possibly) nested object structure.

    Since

    0.7.0

    See also

    https://chimney.readthedocs.io/supported-transformations/#total-transformers-vs-partialtransformers

  6. sealed trait Result[+A] extends AnyRef

    Data type representing either successfully computed value or non-empty collection of path-annotated errors.

    Data type representing either successfully computed value or non-empty collection of path-annotated errors.

    A

    type of success value

    Since

    0.7.0

    See also

    https://chimney.readthedocs.io/supported-transformations/#total-transformers-vs-partialtransformers

Ungrouped