setError method

void setError(
  1. Object ex
)

Implementation

void setError(Object ex) {
  if (ex is! Exception) {
    _ex = Exception(ex.toString());
  } else {
    _ex = ex;
  }
}