Provides mechanisms that enable errors to be accumulated in “accumulating Ors,” Ors whose
Bad type is an Every.
The mechanisms are:
-
Passing accumulating
Ors towithGoodmethods -
Invoking
combinedon a container of accumulatingOrs -
Invoking
validatedByon a container of any type, passing in a function from that type to an accumulatingOr -
Invoking
zipon an accumulatingOr -
Invoking
whenon an accumulatingOr
For more information and examples, see the Accumulating errors with Or section
of the main documentation for class Or.
- Companion:
- object
- Source:
- Accumulation.scala
Value members
Concrete methods
Given 2 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
Given 2 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
For more information and examples, see the Accumulating errors with Or section
of the main documentation for class Or.
- Returns:
a
Goodresult, if all passedOrs wereGood; else aBadcontaining every error.- Source:
- Accumulation.scala
Given 3 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
Given 3 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
For more information and examples, see the Accumulating errors with Or section
of the main documentation for class Or.
- Returns:
a
Goodresult, if all passedOrs wereGood; else aBadcontaining every error.- Source:
- Accumulation.scala
Given 4 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
Given 4 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
For more information and examples, see the Accumulating errors with Or section
of the main documentation for class Or.
- Returns:
a
Goodresult, if all passedOrs wereGood; else aBadcontaining every error.- Source:
- Accumulation.scala
Given 5 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
Given 5 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
For more information and examples, see the Accumulating errors with Or section
of the main documentation for class Or.
- Returns:
a
Goodresult, if all passedOrs wereGood; else aBadcontaining every error.- Source:
- Accumulation.scala
Given 6 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
Given 6 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
For more information and examples, see the Accumulating errors with Or section
of the main documentation for class Or.
- Returns:
a
Goodresult, if all passedOrs wereGood; else aBadcontaining every error.- Source:
- Accumulation.scala
Given 7 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
Given 7 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
For more information and examples, see the Accumulating errors with Or section
of the main documentation for class Or.
- Returns:
a
Goodresult, if all passedOrs wereGood; else aBadcontaining every error.- Source:
- Accumulation.scala
Given 8 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
Given 8 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
For more information and examples, see the Accumulating errors with Or section
of the main documentation for class Or.
- Returns:
a
Goodresult, if all passedOrs wereGood; else aBadcontaining every error.- Source:
- Accumulation.scala
Given 9 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
Given 9 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
For more information and examples, see the Accumulating errors with Or section
of the main documentation for class Or.
- Returns:
a
Goodresult, if all passedOrs wereGood; else aBadcontaining every error.- Source:
- Accumulation.scala
Given 10 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
Given 10 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
For more information and examples, see the Accumulating errors with Or section
of the main documentation for class Or.
- Returns:
a
Goodresult, if all passedOrs wereGood; else aBadcontaining every error.- Source:
- Accumulation.scala
Given 11 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
Given 11 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
For more information and examples, see the Accumulating errors with Or section
of the main documentation for class Or.
- Returns:
a
Goodresult, if all passedOrs wereGood; else aBadcontaining every error.- Source:
- Accumulation.scala
Given 12 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
Given 12 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
For more information and examples, see the Accumulating errors with Or section
of the main documentation for class Or.
- Returns:
a
Goodresult, if all passedOrs wereGood; else aBadcontaining every error.- Source:
- Accumulation.scala
Given 13 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
Given 13 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
For more information and examples, see the Accumulating errors with Or section
of the main documentation for class Or.
- Returns:
a
Goodresult, if all passedOrs wereGood; else aBadcontaining every error.- Source:
- Accumulation.scala
Given 14 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
Given 14 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
For more information and examples, see the Accumulating errors with Or section
of the main documentation for class Or.
- Returns:
a
Goodresult, if all passedOrs wereGood; else aBadcontaining every error.- Source:
- Accumulation.scala
Given 15 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
Given 15 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
For more information and examples, see the Accumulating errors with Or section
of the main documentation for class Or.
- Returns:
a
Goodresult, if all passedOrs wereGood; else aBadcontaining every error.- Source:
- Accumulation.scala
Given 16 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
Given 16 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
For more information and examples, see the Accumulating errors with Or section
of the main documentation for class Or.
- Returns:
a
Goodresult, if all passedOrs wereGood; else aBadcontaining every error.- Source:
- Accumulation.scala
Given 17 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
Given 17 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
For more information and examples, see the Accumulating errors with Or section
of the main documentation for class Or.
- Returns:
a
Goodresult, if all passedOrs wereGood; else aBadcontaining every error.- Source:
- Accumulation.scala
Given 18 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
Given 18 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
For more information and examples, see the Accumulating errors with Or section
of the main documentation for class Or.
- Returns:
a
Goodresult, if all passedOrs wereGood; else aBadcontaining every error.- Source:
- Accumulation.scala
Given 19 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
Given 19 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
For more information and examples, see the Accumulating errors with Or section
of the main documentation for class Or.
- Returns:
a
Goodresult, if all passedOrs wereGood; else aBadcontaining every error.- Source:
- Accumulation.scala
Given 20 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
Given 20 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
For more information and examples, see the Accumulating errors with Or section
of the main documentation for class Or.
- Returns:
a
Goodresult, if all passedOrs wereGood; else aBadcontaining every error.- Source:
- Accumulation.scala
Given 21 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
Given 21 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
For more information and examples, see the Accumulating errors with Or section
of the main documentation for class Or.
- Returns:
a
Goodresult, if all passedOrs wereGood; else aBadcontaining every error.- Source:
- Accumulation.scala
Given 22 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
Given 22 Good accumulating Ors, apply them to the given function and return the result, wrapped in a Good;
else return a Bad containing every error (i.e., a Bad whose Every includes every value that
appears in any Bads passed to withGood).
For more information and examples, see the Accumulating errors with Or section
of the main documentation for class Or.
- Returns:
a
Goodresult, if all passedOrs wereGood; else aBadcontaining every error.- Source:
- Accumulation.scala
Implicits
Implicits
Implicitly converts an Every containing accumulating Ors to an instance of
Combinable, which enables the combined method to be invoked on it.
Implicitly converts an Every containing accumulating Ors to an instance of
Combinable, which enables the combined method to be invoked on it.
For more information and examples, see the Using combined section of the main documentation for class Or.
- Source:
- Accumulation.scala
Implicitly converts an Every to an instance of Validatable, which
enables the validatedBy method to be invoked on it.
Implicitly converts an Every to an instance of Validatable, which
enables the validatedBy method to be invoked on it.
For more information and examples, see the Using validatedBy section of
the main documentation for class Or.
- Source:
- Accumulation.scala
Implicitly converts a Set containing accumulating Ors whose Good type is inferred as Nothing to an
instance of Combinable, which
enables the combined method to be invoked on it.
Implicitly converts a Set containing accumulating Ors whose Good type is inferred as Nothing to an
instance of Combinable, which
enables the combined method to be invoked on it.
Note: This implicit is required for Sets because although Sets are GenTraversableOnces, they aren't covariant, so
the implicit conversion provided by convertGenTraversableOnceToCombinableNothing will not be applied, because it only works on covariant
GenTraversableOnces.
- Source:
- Accumulation.scala
Implicitly converts a Set containing accumulating Ors whose Bad type is inferred as Nothing to an
instance of Combinable, which
enables the combined method to be invoked on it.
Implicitly converts a Set containing accumulating Ors whose Bad type is inferred as Nothing to an
instance of Combinable, which
enables the combined method to be invoked on it.
Note: This implicit is required for Sets because although Sets are GenTraversableOnces, they aren't covariant, so
the implicit conversion provided by convertGenSetToCombinableNothing will not be applied, because it only works on covariant
GenTraversableOnces.
- Source:
- Accumulation.scala
Implicitly converts a Set containing accumulating Ors to an instance of Combinable, which
enables the combined method to be invoked on it.
Implicitly converts a Set containing accumulating Ors to an instance of Combinable, which
enables the combined method to be invoked on it.
For more information and examples, see the Using combined section of the main documentation for class Or.
Note: This implicit is required for Sets because although Sets are GenTraversableOnces, they aren't covariant, so
the implicit conversion provided by convertGenTraversableOnceToCombinable will not be applied, because it only works on covariant
GenTraversableOnces.
- Source:
- Accumulation.scala
- Source:
- Accumulation.scala
Implicitly converts a GenTraversableOnce to an instance of Validatable, which
enables the validatedBy method to be invoked on it.
Implicitly converts a GenTraversableOnce to an instance of Validatable, which
enables the validatedBy method to be invoked on it.
For more information and examples, see the Using validatedBy section of
the main documentation for class Or.
- Source:
- Accumulation.scala
Implicitly converts an Option containing accumulating Ors to an instance of
Combinable, which enables the combined method to be invoked on it.
Implicitly converts an Option containing accumulating Ors to an instance of
Combinable, which enables the combined method to be invoked on it.
For more information and examples, see the Using combined section of the main documentation for class Or.
- Source:
- Accumulation.scala
Implicitly converts an Option to an instance of Validatable, which
enables the validatedBy method to be invoked on it.
Implicitly converts an Option to an instance of Validatable, which
enables the validatedBy method to be invoked on it.
For more information and examples, see the Using validatedBy section of
the main documentation for class Or.
- Source:
- Accumulation.scala
Implicitly converts an accumulating Or to an instance of Accumulatable, which
enables zip and when methods to be invoked on it.
Implicitly converts an accumulating Or to an instance of Accumulatable, which
enables zip and when methods to be invoked on it.
For more information and examples, see the Using zip and Using when
sections of the main documentation for class Or.
- Source:
- Accumulation.scala
Inherited implicits
Implicitly converts a covariant GenTraversableOnce containing accumulating Ors to an instance of
Combinable, which
enables the combined method to be invoked on it.
Implicitly converts a covariant GenTraversableOnce containing accumulating Ors to an instance of
Combinable, which
enables the combined method to be invoked on it.
For more information and examples, see the Using combined section of the main documentation for class Or.
- Inherited from:
- AccumulationLowPriorityImplicits
- Source:
- Accumulation.scala
- Inherited from:
- AccumulationLowPriorityImplicits
- Source:
- Accumulation.scala