void IDBRequest::onError(PassRefPtr<IDBDatabaseError> error) { ASSERT(!m_errorCode && m_errorMessage.isNull() && !m_result); m_errorCode = error->code(); m_errorMessage = error->message(); enqueueEvent(Event::create(eventNames().errorEvent, true, true)); }
void IDBRequest::onError(PassRefPtr<IDBDatabaseError> error) { IDB_TRACE("IDBRequest::onError()"); if (!shouldEnqueueEvent()) return; m_errorCode = error->code(); m_errorMessage = error->message(); m_error = DOMError::create(IDBDatabaseException::getErrorName(error->idbCode())); m_pendingCursor.clear(); enqueueEvent(Event::create(eventNames().errorEvent, true, true)); }
void IDBRequest::onError(PassRefPtr<IDBDatabaseError> error) { LOG(StorageAPI, "IDBRequest::onError() (%s) '%s'", error->name().utf8().data(), error->message().utf8().data()); if (!shouldEnqueueEvent()) return; m_errorCode = error->code(); m_errorMessage = error->message(); m_error = DOMError::create(IDBDatabaseException::getErrorName(error->idbCode())); m_pendingCursor.clear(); enqueueEvent(Event::create(eventNames().errorEvent, true, true)); }