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 parameters:
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
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
Inherited from:
Product

Inherited fields

Inherited from:
NoSuccess