UnexpectedBecause

parsley.token.errors.UnexpectedBecause
abstract class UnexpectedBecause[A](fullAmend: Boolean) extends VanillaFilterConfig[A]

This class ensures that the filter will generate a vanilla unexpected item and a reason for the given failing parse.

Attributes

fullAmend

filters usually have partial amend semantics: should this instead do a full amend?

Since:

4.1.0

Source:
ConfigImplTyped.scala
Graph
Supertypes
trait FilterConfig[A]
class Object
trait Matchable
class Any
Self type

Members list

Concise view

badchar

def reason(x: A): String

This method produces the reason for the given value.

This method produces the reason for the given value.

Attributes

Since:

4.1.0

Source:
ConfigImplTyped.scala
def unexpected(x: A): String

This method produces the unexpected label for the given value.

This method produces the unexpected label for the given value.

Attributes

Since:

4.1.0

Source:
ConfigImplTyped.scala