Index: Source/modules/geofencing/GeofencingError.cpp |
diff --git a/Source/modules/push_messaging/PushError.cpp b/Source/modules/geofencing/GeofencingError.cpp |
similarity index 61% |
copy from Source/modules/push_messaging/PushError.cpp |
copy to Source/modules/geofencing/GeofencingError.cpp |
index 9bee38669cc2e20c5f9ed02da10dd5ebe14fe1f3..7accf339b1b07a758894c616de0afb7621727594 100644 |
--- a/Source/modules/push_messaging/PushError.cpp |
+++ b/Source/modules/geofencing/GeofencingError.cpp |
@@ -3,27 +3,27 @@ |
// found in the LICENSE file. |
#include "config.h" |
-#include "modules/push_messaging/PushError.h" |
+#include "modules/geofencing/GeofencingError.h" |
#include "core/dom/ExceptionCode.h" |
#include "wtf/OwnPtr.h" |
namespace blink { |
-PassRefPtrWillBeRawPtr<DOMException> PushError::take(ScriptPromiseResolver*, WebType* webErrorRaw) |
+PassRefPtrWillBeRawPtr<DOMException> GeofencingError::take(ScriptPromiseResolver*, WebType* webErrorRaw) |
{ |
OwnPtr<WebType> webError = adoptPtr(webErrorRaw); |
switch (webError->errorType) { |
- case WebPushError::ErrorTypeAbort: |
+ case WebType::ErrorTypeAbort: |
return DOMException::create(AbortError, webError->message); |
- case WebPushError::ErrorTypeUnknown: |
- return DOMException::create(UnknownError); |
+ case WebType::ErrorTypeUnknown: |
+ return DOMException::create(UnknownError, webError->message); |
} |
ASSERT_NOT_REACHED(); |
return DOMException::create(UnknownError); |
} |
-void PushError::dispose(WebType* webErrorRaw) |
+void GeofencingError::dispose(WebType* webErrorRaw) |
{ |
delete webErrorRaw; |
} |