patterns

parsley.errors.patterns$
object patterns

This module contains combinators that help facilitate the error message generational patterns Verified Errors and Preventative Errors.

In particular, exposes an extension class VerifiedErrors that facilitates creating verified errors in many different formats.

Attributes

Since:

4.2.0

Source:
patterns.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

final implicit class VerifiedErrors[P, A](p: P)(implicit con: P => Parsley[A])

This class exposes combinators related to the Verified Errors parser design pattern.

This class exposes combinators related to the Verified Errors parser design pattern.

This extension class operates on values that are convertible to parsers. The combinators it enables allow for the parsing of known illegal values, providing richer error messages in case they succeed.

Attributes

P

the type of base value that this class is used on (the conversion to Parsley) is summoned automatically.

con

a conversion that allows values convertible to parsers to be used.

p

the value that this class is enabling methods on.

Constructor:

This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.

Since:

4.2.0

Source:
patterns.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Implicits

Implicits

final implicit def VerifiedErrors[P, A](p: P)(implicit con: P => Parsley[A]): VerifiedErrors[P, A]

This class exposes combinators related to the Verified Errors parser design pattern.

This class exposes combinators related to the Verified Errors parser design pattern.

This extension class operates on values that are convertible to parsers. The combinators it enables allow for the parsing of known illegal values, providing richer error messages in case they succeed.

Attributes

P

the type of base value that this class is used on (the conversion to Parsley) is summoned automatically.

con

a conversion that allows values convertible to parsers to be used.

p

the value that this class is enabling methods on.

Constructor:

This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.

Since:

4.2.0

Source:
patterns.scala