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

sbt.internal.inc.Errors.scala Maven / Gradle / Ivy

The newest version!
/*
 * sbt
 * Copyright 2023, Scala center
 * Copyright 2011 - 2022, Lightbend, Inc.
 * Copyright 2008 - 2010, Mark Harrah
 * Licensed under Apache License 2.0 (see LICENSE)
 */

package sbt.internal.inc

class InvalidComponent(msg: String, cause: Throwable) extends RuntimeException(msg, cause) {
  def this(msg: String) = this(msg, null)
}

final class MissingScalaJar(msg: String, cause: Throwable) extends RuntimeException(msg, cause) {
  def this(msg: String) = this(msg, null)
}

object MissingScalaJar {
  def missingTemplate(missing: String): String =
    s"The $missing could not be found in your cache nor downloaded from the Internet."
  def compiler: MissingScalaJar = new MissingScalaJar(missingTemplate("Scala compiler"))
  def library: MissingScalaJar = new MissingScalaJar(missingTemplate("Scala library"))
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy