-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #191 from alexarchambault/better-errors
Better errors
- Loading branch information
Showing
25 changed files
with
311 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
modules/build/src/main/scala/scala/build/errors/FetchingDependenciesError.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package scala.build.errors | ||
|
||
import coursier.error.CoursierError | ||
|
||
final class FetchingDependenciesError(underlying: CoursierError) | ||
extends BuildException(s"Error fetching dependencies: ${underlying.getMessage}", underlying) |
4 changes: 4 additions & 0 deletions
4
modules/build/src/main/scala/scala/build/errors/FileNotFoundException.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package scala.build.errors | ||
|
||
final class FileNotFoundException(val path: os.Path) | ||
extends BuildException(s"File not found: $path") |
5 changes: 5 additions & 0 deletions
5
modules/build/src/main/scala/scala/build/errors/InvalidBinaryScalaVersionError.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package scala.build.errors | ||
|
||
final class InvalidBinaryScalaVersionError( | ||
val binaryVersion: String | ||
) extends BuildException(s"Cannot find matching Scala version for '$binaryVersion'") |
3 changes: 3 additions & 0 deletions
3
modules/build/src/main/scala/scala/build/errors/JmhBuildFailedError.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package scala.build.errors | ||
|
||
final class JmhBuildFailedError extends BuildException("JMH build failed") |
3 changes: 3 additions & 0 deletions
3
modules/build/src/main/scala/scala/build/errors/MainClassError.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package scala.build.errors | ||
|
||
abstract class MainClassError(message: String) extends BuildException(message) |
4 changes: 4 additions & 0 deletions
4
modules/build/src/main/scala/scala/build/errors/NoFrameworkFoundByBridgeError.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package scala.build.errors | ||
|
||
final class NoFrameworkFoundByBridgeError | ||
extends TestError("No framework found by Scala.JS test bridge") |
3 changes: 3 additions & 0 deletions
3
modules/build/src/main/scala/scala/build/errors/NoMainClassFoundError.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package scala.build.errors | ||
|
||
final class NoMainClassFoundError extends MainClassError("No main class found") |
3 changes: 3 additions & 0 deletions
3
modules/build/src/main/scala/scala/build/errors/NoTestFrameworkFoundError.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package scala.build.errors | ||
|
||
final class NoTestFrameworkFoundError extends TestError("No test framework found") |
4 changes: 4 additions & 0 deletions
4
modules/build/src/main/scala/scala/build/errors/SeveralMainClassesFoundError.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package scala.build.errors | ||
|
||
final class SeveralMainClassesFoundError(mainClasses: ::[String]) | ||
extends MainClassError(s"Found several main classes: ${mainClasses.mkString(", ")}") |
3 changes: 3 additions & 0 deletions
3
modules/build/src/main/scala/scala/build/errors/TestError.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package scala.build.errors | ||
|
||
abstract class TestError(message: String) extends BuildException(message) |
4 changes: 4 additions & 0 deletions
4
modules/build/src/main/scala/scala/build/errors/TooManyFrameworksFoundByBridgeError.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package scala.build.errors | ||
|
||
final class TooManyFrameworksFoundByBridgeError | ||
extends TestError("Too many frameworks found by Scala.JS test bridge") |
Oops, something went wrong.