Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions modules/core/shared/src/main/scala/weaver/exceptions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package weaver

import cats.data.NonEmptyList

private[weaver] sealed abstract class WeaverTestException(
sealed abstract class WeaverTestException private[weaver] (
message: String
) extends RuntimeException(message)

final class ExpectationFailed private[weaver] (
final class ExpectationFailed(
private[weaver] val message: String,
private[weaver] val locations: NonEmptyList[SourceLocation])
extends WeaverTestException(message) {
Expand All @@ -15,7 +15,7 @@ final class ExpectationFailed private[weaver] (
new ExpectationFailed(message, locations.append(location))
}

private[weaver] final class IgnoredException(
final class IgnoredException private[weaver] (
private[weaver] val reason: String,
private[weaver] val location: SourceLocation)
extends WeaverTestException(reason)