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

fs2.kafka.DeserializationException.scala Maven / Gradle / Ivy

There is a newer version: 3.6.0
Show newest version
/*
 * Copyright 2018-2024 OVO Energy Limited
 *
 * SPDX-License-Identifier: Apache-2.0
 */

package fs2.kafka

import org.apache.kafka.common.KafkaException

/**
  * Exception raised with [[Deserializer#failWith]] when deserialization was unable to complete
  * successfully.
  */
sealed abstract class DeserializationException(message: String) extends KafkaException(message)

private[kafka] object DeserializationException {

  def apply(message: String): DeserializationException =
    new DeserializationException(message) {

      override def toString: String =
        s"fs2.kafka.DeserializationException: $getMessage"

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy