isDatabaseClosedError method

bool isDatabaseClosedError()

True if the exception is a database closed error

Implementation

bool isDatabaseClosedError() {
  if (_message != null) {
    return _message.contains('database_closed') ||
        _message.contains('This database has already been closed');
  }
  return false;
}