WorkerExceptionInfo


public final class WorkerExceptionInfo


Represents exceptions occurred from initializing or executing a ListenableWorker.

Summary

Public constructors

WorkerExceptionInfo(
    @NonNull String workerClassName,
    @NonNull WorkerParameters workerParameters,
    @NonNull Throwable throwable
)

Public methods

final @NonNull Throwable

The Throwable thrown while initializing or executing a ListenableWorker

final @NonNull String

The class name of the worker

final @NonNull WorkerParameters

Parameters for worker initialization

Public constructors

WorkerExceptionInfo

Added in 2.10.0
public WorkerExceptionInfo(
    @NonNull String workerClassName,
    @NonNull WorkerParameters workerParameters,
    @NonNull Throwable throwable
)

Public methods

getThrowable

Added in 2.10.0
public final @NonNull Throwable getThrowable()

The Throwable thrown while initializing or executing a ListenableWorker

getWorkerClassName

Added in 2.10.0
public final @NonNull String getWorkerClassName()

The class name of the worker

getWorkerParameters

Added in 2.10.0
public final @NonNull WorkerParameters getWorkerParameters()

Parameters for worker initialization