error

fun <T> error(msg: String, data: T?): Resource<T>