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

com.evolutiongaming.kafka.journal.JournalError.scala Maven / Gradle / Ivy

The newest version!
package com.evolutiongaming.kafka.journal


import cats.syntax.all._

final case class JournalError(
  msg: String,
  cause: Option[Throwable] = None
) extends RuntimeException(msg, cause.orNull)

object JournalError {

  def apply(msg: String, cause: Throwable): JournalError = JournalError(msg, cause.some)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy