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