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

main.com.wisetrack.sdk.scheduler.RunnableWrapper.kt Maven / Gradle / Ivy

There is a newer version: 1.5.8-alpha
Show newest version
package com.wisetrack.sdk.scheduler

import com.wisetrack.sdk.WiseTrackFactory

/**
@author hamed (@hamed-hsb)
 * @since 09th October 2021
 */

class RunnableWrapper(private var runnable: Runnable?) : Runnable{
    override fun run() {
        try {
            runnable!!.run()
        } catch (t: Throwable) {
            WiseTrackFactory.getLogger().error(
                "Runnable error [${ t.message}] of type [${t.javaClass.canonicalName}]",
            )
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy