harness.kafka.error.DecodingFailure.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of harness-kafka_3 Show documentation
Show all versions of harness-kafka_3 Show documentation
Miscellaneous libraries/utilities for Scala.
The newest version!
package harness.kafka.error
import cats.data.NonEmptyList
final case class DecodingFailure(errors: NonEmptyList[String]) extends Throwable {
override def getMessage: String =
errors.toList match {
case error :: Nil => s"Kafka encountered decoding failure: $error"
case errors => s"Kafka encountered decoding failures:${errors.map(e => s"\n - $e").mkString}"
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy