CleanerCollector

com.phasmid.majabigwaduce.core.CleanerCollector

Cleans a sequence of input data that may contain exceptions. The main purpose is to organize the valid results by their keys and separate out any encountered exceptions. Used by Mapper to build its response.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def cleanAndCollect[K, W](kWys: Seq[Try[(K, W)]]): (Map[K, Seq[W]], Seq[Throwable])

Method to clean exceptions from the input, and collect the results together, returning appropriate output.

Method to clean exceptions from the input, and collect the results together, returning appropriate output.

Value parameters

kWys

the input of type Seq of Try of (K, W).

Attributes

Returns

the output of type (Map[K, Seq of W], Seq of Throwable).