Lines Matching defs:exceptionState
55 static bool hadException(ExceptionState& exceptionState, ErrorString* errorString)
57 if (!exceptionState.hadException())
60 switch (exceptionState.code()) {
130 TrackExceptionState exceptionState;
131 for (unsigned i = 0; i < storageArea->length(exceptionState, frame); ++i) {
132 String name(storageArea->key(i, exceptionState, frame));
133 if (hadException(exceptionState, errorString))
135 String value(storageArea->getItem(name, exceptionState, frame));
136 if (hadException(exceptionState, errorString))
146 static String toErrorString(ExceptionState& exceptionState)
148 if (exceptionState.hadException())
149 return DOMException::getErrorName(exceptionState.code());
162 TrackExceptionState exceptionState;
163 storageArea->setItem(key, value, exceptionState, frame);
164 *errorString = toErrorString(exceptionState);
176 TrackExceptionState exceptionState;
177 storageArea->removeItem(key, exceptionState, frame);
178 *errorString = toErrorString(exceptionState);