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.

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

Concrete methods

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

The toString method of a Failure yields an error message.

The toString method of a Failure 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