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

harness.kafka.error.DecodingFailure.scala Maven / Gradle / Ivy

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