fun getLatestError(taskId: Long): PendingTaskError?
How to check if an error has been recorded for a PendingTask.
taskId - The taskId of a PendingTask you may or may not have recorded an error for.
IllegalArgumentException - If the PendingTask for the taskId provided does not exist.