Message

case class Message(offset: Int, pos: Position, input: String, expected: List[String])

Parser error message.

An error message contains:

  • the index of the token at which the error was encountered.
  • the position (line and column) at which the error was encountered.
  • the token that cause the failure, as a string.
  • a list of the values that were expected.
Companion:
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def expecting(label: String): Message

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product