| Index: Source/modules/mediastream/RTCDTMFSender.cpp
|
| diff --git a/Source/modules/mediastream/RTCDTMFSender.cpp b/Source/modules/mediastream/RTCDTMFSender.cpp
|
| index 17695e566aef481e77527e1b9a722cfb88cb9dce..a2fa7dd2afc241e9554815d32fee0fb562446045 100644
|
| --- a/Source/modules/mediastream/RTCDTMFSender.cpp
|
| +++ b/Source/modules/mediastream/RTCDTMFSender.cpp
|
| @@ -47,7 +47,7 @@ PassRefPtr<RTCDTMFSender> RTCDTMFSender::create(ScriptExecutionContext* context,
|
| RefPtr<MediaStreamTrack> track = prpTrack;
|
| OwnPtr<RTCDTMFSenderHandler> handler = peerConnectionHandler->createDTMFSender(track->component());
|
| if (!handler) {
|
| - es.throwDOMException(NotSupportedError);
|
| + es.throwUninformativeAndGenericDOMException(NotSupportedError);
|
| return 0;
|
| }
|
|
|
| @@ -101,17 +101,17 @@ void RTCDTMFSender::insertDTMF(const String& tones, long duration, ExceptionStat
|
| void RTCDTMFSender::insertDTMF(const String& tones, long duration, long interToneGap, ExceptionState& es)
|
| {
|
| if (!canInsertDTMF()) {
|
| - es.throwDOMException(NotSupportedError);
|
| + es.throwUninformativeAndGenericDOMException(NotSupportedError);
|
| return;
|
| }
|
|
|
| if (duration > maxToneDurationMs || duration < minToneDurationMs) {
|
| - es.throwDOMException(SyntaxError);
|
| + es.throwUninformativeAndGenericDOMException(SyntaxError);
|
| return;
|
| }
|
|
|
| if (interToneGap < minInterToneGapMs) {
|
| - es.throwDOMException(SyntaxError);
|
| + es.throwUninformativeAndGenericDOMException(SyntaxError);
|
| return;
|
| }
|
|
|
| @@ -119,7 +119,7 @@ void RTCDTMFSender::insertDTMF(const String& tones, long duration, long interTon
|
| m_interToneGap = interToneGap;
|
|
|
| if (!m_handler->insertDTMF(tones, m_duration, m_interToneGap))
|
| - es.throwDOMException(SyntaxError);
|
| + es.throwUninformativeAndGenericDOMException(SyntaxError);
|
| }
|
|
|
| void RTCDTMFSender::didPlayTone(const String& tone)
|
|
|