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

com.twitter.finagle.mysql.ValueSerializationException.scala Maven / Gradle / Ivy

There is a newer version: 24.2.0
Show newest version
package com.twitter.finagle.mysql

import com.twitter.finagle.FailureFlags
import java.sql.SQLNonTransientException

/**
 * Thrown if unable to serialize a value of the column.
 */
class ValueSerializationException private[mysql] (
  columnName: String,
  message: String,
  val flags: Long = FailureFlags.NonRetryable)
    extends SQLNonTransientException(
      s"Unable to serialize a value from column '$columnName'. $message")
    with FailureFlags[ValueSerializationException] {

  protected def copyWithFlags(flags: Long): ValueSerializationException =
    new ValueSerializationException(columnName, message, flags)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy