Error

scala.util.parsing.combinator.Parsers.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.

Value parameters

msg

An error message string describing the error.

next

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

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class NoSuccess
class ParseResult[Nothing]
class Object
trait Matchable
class Any
Show all

Members list

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.

Attributes

Definition Classes
Any

Inherited methods

def filterWithError(p: Nothing => Boolean, error: Nothing => String, position: Input): ParseResult[Nothing]

Attributes

Inherited from:
NoSuccess
def flatMapWithNext[U](f: Nothing => Input => ParseResult[U]): ParseResult[U]

Attributes

Inherited from:
NoSuccess
def get: Nothing

Returns the embedded result.

Returns the embedded result.

Attributes

Inherited from:
NoSuccess
def getOrElse[B](default: => B): B

Attributes

Inherited from:
ParseResult

Attributes

Inherited from:
ParseResult
def map[U](f: Nothing => U): ParseResult[U]

Functional composition of ParseResults.

Functional composition of ParseResults.

Value parameters

f

the function to be lifted over this result

Attributes

Returns

f applied to the result of this ParseResult, packaged up as a new ParseResult

Inherited from:
NoSuccess
def mapPartial[U](f: PartialFunction[Nothing, U], error: Nothing => String): ParseResult[U]

Partial functional composition of ParseResults.

Partial functional composition of ParseResults.

Value parameters

error

a function that takes the same argument as f and produces an error message to explain why f wasn't applicable (it is called when this is the case)

f

the partial function to be lifted over this result

Attributes

Returns

if f f is defined at the result in this ParseResult, f applied to the result of this ParseResult, packaged up as a new ParseResult. If f is not defined, Failure.

Inherited from:
NoSuccess

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Inherited fields

Attributes

Inherited from:
NoSuccess