Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Unified Diff: Source/bindings/v8/ExceptionMessages.cpp

Issue 23041002: Improve 'XMLHttpRequest' exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ExceptionMessages. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/v8/ExceptionMessages.h ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/ExceptionMessages.cpp
diff --git a/Source/bindings/v8/ExceptionMessages.cpp b/Source/bindings/v8/ExceptionMessages.cpp
index 15c7f28eb87c63553e4a9e7ba5c2d2414d5a9c43..f71b29ce6868e28fd845fe05e090036bd129c5c4 100644
--- a/Source/bindings/v8/ExceptionMessages.cpp
+++ b/Source/bindings/v8/ExceptionMessages.cpp
@@ -38,4 +38,14 @@ String ExceptionMessages::failedToExecute(const String& method, const String& ty
return "Failed to execute '" + method + "' on '" + type + "': " + detail;
}
+String ExceptionMessages::failedToGet(const String& property, const String& type, const String& detail)
+{
+ return "Failed to read the '" + property + "' property from '" + type + "': " + detail;
+}
+
+String ExceptionMessages::failedToSet(const String& property, const String& type, const String& detail)
+{
+ return "Failed to set the '" + property + "' property on '" + type + "': " + detail;
+}
+
} // namespace WebCore
« no previous file with comments | « Source/bindings/v8/ExceptionMessages.h ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698