Failure

case class Failure(msg: String, next: Input) extends NoSuccess
The failure case of ParseResult: contains an error-message and the remaining input.
Parsing will back-track when a failure occurs.
Value Params
msg
An error message string describing the failure.
next
The parser's unconsumed input at the point where the failure occurred.
trait Serializable
trait Product
trait Equals
class NoSuccess
class ParseResult[Nothing]
class Object
trait Matchable
class Any

Value members

Methods

override def toString: String
The toString method of a Failure yields an error message.
Definition Classes
Any
def append[U](a: => ParseResult[U]): ParseResult[U]

Inherited methods

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

Inherited fields

val successful: Boolean
Inhertied from
NoSuccess