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

org.scalafmt.dynamic.exceptions.PositionExceptionImpl.scala Maven / Gradle / Ivy

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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy