All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scaposer.ParseFailure.scala Maven / Gradle / Ivy

The newest version!
package scaposer

import scala.util.parsing.input.Position

// Not an [[Exception]] because its creation is slow.
case class ParseFailure(msg: String, position: Position) {
  /** Returns a visual representation of failure position. */
  override def toString = {
    s"$msg:\n${position.longString}"
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy