Lines Matching refs:exceptionState
59 PassRefPtrWillBeRawPtr<Node> NamedNodeMap::removeNamedItem(const AtomicString& name, ExceptionState& exceptionState)
63 exceptionState.throwDOMException(NotFoundError, "No item with name '" + name + "' was found.");
69 PassRefPtrWillBeRawPtr<Node> NamedNodeMap::removeNamedItemNS(const AtomicString& namespaceURI, const AtomicString& localName, ExceptionState& exceptionState)
73 exceptionState.throwDOMException(NotFoundError, "No item with name '" + namespaceURI + "::" + localName + "' was found.");
79 PassRefPtrWillBeRawPtr<Node> NamedNodeMap::setNamedItem(Node* node, ExceptionState& exceptionState)
82 exceptionState.throwDOMException(NotFoundError, "The node provided was null.");
88 exceptionState.throwDOMException(HierarchyRequestError, "The node provided is not an attribute node.");
92 return m_element->setAttributeNode(toAttr(node), exceptionState);
95 PassRefPtrWillBeRawPtr<Node> NamedNodeMap::setNamedItemNS(Node* node, ExceptionState& exceptionState)
97 return setNamedItem(node, exceptionState);