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

com.evolutiongaming.kafka.journal.execution.UncaughtExceptionHandler.scala Maven / Gradle / Ivy

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

object UncaughtExceptionHandler {

  val default: Thread.UncaughtExceptionHandler = new Thread.UncaughtExceptionHandler {
    def uncaughtException(thread: Thread, error: Throwable) = {
      Thread.getDefaultUncaughtExceptionHandler match {
        case null    => error.printStackTrace()
        case handler => handler.uncaughtException(Thread.currentThread(), error)
      }
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy