Skip to content

Commit

Permalink
Make errors extend Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
iRevive committed Nov 27, 2023
1 parent 2693fdd commit ad6fd28
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ object SpanExporter {
* the error occurred
*/
final case class ExporterFailure(exporter: String, failure: Throwable)
extends Throwable(
extends Exception(
s"The exporter [$exporter] has failed due to ${failure.getMessage}",
failure
)
Expand All @@ -141,7 +141,7 @@ object SpanExporter {
final case class CompositeExporterFailure(
first: ExporterFailure,
rest: NonEmptyList[ExporterFailure]
) extends Throwable(
) extends Exception(
s"Multiple exporters [${rest.prepend(first).map(_.exporter).mkString_(", ")}] have failed",
first
)
Expand Down

0 comments on commit ad6fd28

Please sign in to comment.