Lines Matching defs:exceptionState

30 Headers* Headers::create(const Headers* init, ExceptionState& exceptionState)
36 headers->fillWith(init, exceptionState);
41 Headers* Headers::create(const Dictionary& init, ExceptionState& exceptionState)
47 headers->fillWith(init, exceptionState);
70 void Headers::append(const String& name, const String& value, ExceptionState& exceptionState)
77 exceptionState.throwTypeError("Invalid name");
81 exceptionState.throwTypeError("Invalid value");
86 exceptionState.throwTypeError("Headers are immutable");
105 void Headers::remove(const String& name, ExceptionState& exceptionState)
110 exceptionState.throwTypeError("Invalid name");
115 exceptionState.throwTypeError("Headers are immutable");
134 String Headers::get(const String& name, ExceptionState& exceptionState)
139 exceptionState.throwTypeError("Invalid name");
149 Vector<String> Headers::getAll(const String& name, ExceptionState& exceptionState)
154 exceptionState.throwTypeError("Invalid name");
164 bool Headers::has(const String& name, ExceptionState& exceptionState)
169 exceptionState.throwTypeError("Invalid name");
177 void Headers::set(const String& name, const String& value, ExceptionState& exceptionState)
183 exceptionState.throwTypeError("Invalid name");
187 exceptionState.throwTypeError("Invalid value");
192 exceptionState.throwTypeError("Headers are immutable");
221 void Headers::fillWith(const Headers* object, ExceptionState& exceptionState)
231 append(object->m_headerList->list()[i]->first, object->m_headerList->list()[i]->second, exceptionState);
232 if (exceptionState.hadException())
237 void Headers::fillWith(const Dictionary& object, ExceptionState& exceptionState)
262 exceptionState.throwTypeError("Invalid value");
267 exceptionState.throwTypeError("Invalid value");
270 append(keyValuePair[0], keyValuePair[1], exceptionState);
271 if (exceptionState.hadException())
287 exceptionState.throwTypeError("Invalid value");
290 append(keys[i], value, exceptionState);
291 if (exceptionState.hadException())
310 TrackExceptionState exceptionState;
316 if (exceptionState.hadException())