Error

case class Error(msg: String, next: Input) extends NoSuccess

The fatal failure case of ParseResult: contains an error-message and the remaining input. No back-tracking is done when a parser returns an Error.

The fatal failure case of ParseResult: contains an error-message and the remaining input. No back-tracking is done when a parser returns an Error.

Value Params
msg

An error message string describing the error.

next

The parser's unconsumed input at the point where the error occurred.

trait Serializable
trait Product
trait Equals
class NoSuccess
class ParseResult[Nothing]
class Object
trait Matchable
class Any

Value members

Concrete methods

def append[U](a: => ParseResult[U]): ParseResult[U]
override def toString: String

The toString method of an Error yields an error message.

The toString method of an Error yields an error message.

Definition Classes
Any

Inherited methods

def filterWithError(p: Nothing => Boolean, error: Nothing => String, position: Input): ParseResult[Nothing]
Inherited from
NoSuccess
def flatMapWithNext[U](f: Nothing => Input => ParseResult[U]): ParseResult[U]
Inherited from
NoSuccess
def get: Nothing
Inherited from
NoSuccess
def getOrElse[B](default: => B): B
Inherited from
ParseResult
def isEmpty: Boolean
Inherited from
ParseResult
def map[U](f: Nothing => U): ParseResult[U]
Inherited from
NoSuccess
def mapPartial[U](f: PartialFunction[Nothing, U], error: Nothing => String): ParseResult[U]
Inherited from
NoSuccess
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product

Inherited fields

val successful: Boolean
Inherited from
NoSuccess