createError

fun <T> createError(error: Throwable): Resource<T>