krapsh-0.1.6.1: Haskell bindings for Spark Dataframes and Datasets

Safe HaskellNone
LanguageHaskell2010

Spark.Core.Try

Description

Useful classes and functions to deal with failures within the Krapsh framework.

This is a developer API. Users should not have to invoke functions from this module.

Synopsis

Documentation

data NodeError Source #

An error associated to a particular node (an observable or a dataset).

Constructors

Error 

Fields

type Try = Either NodeError Source #

The common result of attempting to build something.

tryError :: Text -> Try a Source #

Returns an error object given a text clue.

tryEither :: Either Text a -> Try a Source #

Returns an error object given a string clue. Remove this method tryError' :: String -> Try a tryError' = _error . T.pack

(internal) Given a potentially errored object, converts it to a Try.