#include "modules/mediastream/RTCIceCandidate.h"
#include "bindings/v8/Dictionary.h"
+#include "bindings/v8/ExceptionMessages.h"
#include "bindings/v8/ExceptionState.h"
#include "core/dom/ExceptionCode.h"
String candidate;
bool ok = dictionary.get("candidate", candidate);
if (!ok || !candidate.length()) {
- exceptionState.throwUninformativeAndGenericDOMException(TypeMismatchError);
+ exceptionState.throwDOMException(TypeMismatchError, ExceptionMessages::incorrectPropertyType("candidate", "is not a string, or is empty."));
return 0;
}