DefaultErrorBuilder

class DefaultErrorBuilder extends ErrorBuilder[String] with Revision2

This is the class used to build Parsley's default error messages. While it compiles with the ErrorBuilder typeclass, it should not be considered a stable contract: the formatting can be changed at any time and without notice. The API, however, will remain stable.

Since

3.0.0

trait Revision2
trait ErrorBuilder[String]
class Object
trait Matchable
class Any

Type members

Types

type EndOfInput = String
type ErrorInfoLines = Seq[String]
type ExpectedItems = Option[String]
type ExpectedLine = Option[String]
type Item = String
type LineInfo = Seq[String]
type Message = String
type Messages = Seq[Message]
type Named = String
type Position = String
type Raw = String
type Source = Option[String]
type UnexpectedLine = Option[String]

Value members

Concrete methods

override
Definition Classes
override
Definition Classes
override
Definition Classes
override
def format(pos: Position, source: Source, lines: ErrorInfoLines): String
Definition Classes
override
def lineInfo(line: String, linesBefore: Seq[String], linesAfter: Seq[String], errorPointsAt: Int): LineInfo
Definition Classes
override
def message(msg: String): Message
Definition Classes
override
def named(item: String): Named
Definition Classes
override
def pos(line: Int, col: Int): Position
Definition Classes
override
def raw(item: String): Raw
Definition Classes
override
def reason(reason: String): Message
Definition Classes
override
def source(sourceName: Option[String]): Source
Definition Classes
override
Definition Classes
override
def unexpected(item: Option[Item]): UnexpectedLine
Definition Classes
override
def vanillaError(unexpected: UnexpectedLine, expected: ExpectedLine, reasons: Messages, lines: LineInfo): ErrorInfoLines
Definition Classes

Concrete fields

override
override
val numLinesAfter: Int
override