ErrorGen
parsley.errors.ErrorGen
This class can be used to generate hand-tuned error messages without using flatMap
.
This class, and its subclasses, describe special primitives that can use the results of a previous parser to form an error message and then raise it. This is not something that is normally possible with raw combinators, without using flatMap
, which is expensive.
Primarily, these are designed to be used with filterWith
/verifiedWith
/preventWith
but can be used in other parsers as well. See the methods of the class for information.
Attributes
- Since
-
4.4.0
- Source
- ErrorGen.scala
- Graph
-
- Supertypes
- Known subtypes
-
class SpecializedGen[A]class VanillaGen[A]
Members list
In this article