failure

private var failure: (ClientException) -> Unit?

using the Task's instance, we can call failure.invoke passing in a preferred Throwable ClientException as a failure result