org.scalafmt.dynamic.exceptions.PositionExceptionImpl.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scalafmt-dynamic_2.11 Show documentation
Show all versions of scalafmt-dynamic_2.11 Show documentation
Implementation of scalafmt-interfaces
The newest version!
package org.scalafmt.dynamic.exceptions
import java.nio.file.Path
import org.scalafmt.interfaces.PositionException
case class PositionExceptionImpl(
file: Path,
code: String,
shortMessage: String,
longMessage: String,
pos: RangePosition,
cause: Throwable
) extends PositionException(longMessage, cause) {
def start: Int = pos.start
def end: Int = pos.end
override def startLine: Int = pos.startLine
override def startCharacter: Int = pos.startCharacter
override def endLine: Int = pos.endLine
override def endCharacter: Int = pos.endCharacter
}