ErrorBridge

parsley.generic.ErrorBridge
trait ErrorBridge

This generically allows for the tagging of parsers via its error combinator: as it happens, both labels and reasons are very often attached to bridges.

Attributes

Since

5.0.0

Source
generic.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait ParserBridge0[R]
trait ParserBridge1[T1, R]
trait ParserBridge10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R]
trait ParserBridge11[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, R]
trait ParserBridge12[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, R]
trait ParserBridge13[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, R]
trait ParserBridge14[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, R]
trait ParserBridge15[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, R]
trait ParserBridge16[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, R]
trait ParserBridge17[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, R]
trait ParserBridge18[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, R]
trait ParserBridge19[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, R]
trait ParserBridge2[T1, T2, R]
trait ParserBridge20[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, R]
trait ParserBridge21[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, R]
trait ParserBridge22[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, R]
trait ParserBridge3[T1, T2, T3, R]
trait ParserBridge4[T1, T2, T3, T4, R]
trait ParserBridge5[T1, T2, T3, T4, T5, R]
trait ParserBridge6[T1, T2, T3, T4, T5, T6, R]
trait ParserBridge7[T1, T2, T3, T4, T5, T6, T7, R]
trait ParserBridge8[T1, T2, T3, T4, T5, T6, T7, T8, R]
trait ParserBridge9[T1, T2, T3, T4, T5, T6, T7, T8, T9, R]
Show all

Members list

Value members

Concrete methods

final protected def error[T](p: Parsley[T]): Parsley[T]

Applies the error components described by labels and reason to the given parser.

Applies the error components described by labels and reason to the given parser.

Attributes

Note

this should be used within a bridge's apply and the from combinator.

Source
generic.scala

The labels that should be associated with a failure to parse this bridge.

The labels that should be associated with a failure to parse this bridge.

The default, Nil, will not affect the labelling of the original error.

Attributes

Source
generic.scala

The reason that should be associated with a failure to parse this bridge.

The reason that should be associated with a failure to parse this bridge.

The default, None, will not add any reasons.

Attributes

Source
generic.scala