20 lines
534 B
Java
20 lines
534 B
Java
package com.adjust.sdk.scheduler;
|
|
|
|
import com.adjust.sdk.AdjustFactory;
|
|
public class RunnableWrapper implements Runnable {
|
|
private Runnable runnable;
|
|
|
|
public RunnableWrapper(Runnable runnable) {
|
|
this.runnable = runnable;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
try {
|
|
this.runnable.run();
|
|
} catch (Throwable th) {
|
|
AdjustFactory.getLogger().error("Runnable error [%s] of type [%s]", th.getMessage(), th.getClass().getCanonicalName());
|
|
}
|
|
}
|
|
}
|