setError static method

void setError(
  1. Object? ex
)

Record the current Database error

Implementation

static void setError(Object? ex) {
  if (ex is! Exception) {
    ex = Exception(ex.toString());
  }
  _exception = ex;
}