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

Unified Diff: sdk/lib/indexed_db/dartium/indexed_db_dartium.dart

Issue 11720002: Next step in overload dispatcher refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/web_audio/dartium/web_audio_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
diff --git a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
index d5d6415fa44fc901fb2a2dda4dc126dce3be7c4b..6ba28ccdb39c8ea582fcf67bdd1e013e8a115513 100644
--- a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
+++ b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
@@ -165,7 +165,7 @@ class Database extends EventTarget {
if ((storeName_OR_storeNames is String || storeName_OR_storeNames == null) && (mode is String || mode == null)) {
return _transaction_3(storeName_OR_storeNames, mode);
}
- throw "Incorrect number or type of arguments";
+ throw new ArgumentError("Incorrect number or type of arguments");
}
@@ -285,7 +285,7 @@ class Index extends NativeFieldWrapperClass1 {
if (?key_OR_range) {
return _count_3(key_OR_range);
}
- throw "Incorrect number or type of arguments";
+ throw new ArgumentError("Incorrect number or type of arguments");
}
@@ -307,7 +307,7 @@ class Index extends NativeFieldWrapperClass1 {
if (?key) {
return _get_2(key);
}
- throw "Incorrect number or type of arguments";
+ throw new ArgumentError("Incorrect number or type of arguments");
}
@@ -325,7 +325,7 @@ class Index extends NativeFieldWrapperClass1 {
if (?key) {
return _getKey_2(key);
}
- throw "Incorrect number or type of arguments";
+ throw new ArgumentError("Incorrect number or type of arguments");
}
@@ -352,7 +352,7 @@ class Index extends NativeFieldWrapperClass1 {
if (?key_OR_range && (direction is String || direction == null)) {
return _openCursor_5(key_OR_range, direction);
}
- throw "Incorrect number or type of arguments";
+ throw new ArgumentError("Incorrect number or type of arguments");
}
@@ -391,7 +391,7 @@ class Index extends NativeFieldWrapperClass1 {
if (?key_OR_range && (direction is String || direction == null)) {
return _openKeyCursor_5(key_OR_range, direction);
}
- throw "Incorrect number or type of arguments";
+ throw new ArgumentError("Incorrect number or type of arguments");
}
@@ -595,7 +595,7 @@ class ObjectStore extends NativeFieldWrapperClass1 {
if (?key_OR_range) {
return _count_3(key_OR_range);
}
- throw "Incorrect number or type of arguments";
+ throw new ArgumentError("Incorrect number or type of arguments");
}
@@ -617,7 +617,7 @@ class ObjectStore extends NativeFieldWrapperClass1 {
if ((name is String || name == null) && (keyPath is String || keyPath == null) && (options is Map || options == null)) {
return _createIndex_2(name, keyPath, options);
}
- throw "Incorrect number or type of arguments";
+ throw new ArgumentError("Incorrect number or type of arguments");
}
@@ -635,7 +635,7 @@ class ObjectStore extends NativeFieldWrapperClass1 {
if (?key_OR_keyRange) {
return _delete_2(key_OR_keyRange);
}
- throw "Incorrect number or type of arguments";
+ throw new ArgumentError("Incorrect number or type of arguments");
}
@@ -657,7 +657,7 @@ class ObjectStore extends NativeFieldWrapperClass1 {
if (?key) {
return _get_2(key);
}
- throw "Incorrect number or type of arguments";
+ throw new ArgumentError("Incorrect number or type of arguments");
}
@@ -688,7 +688,7 @@ class ObjectStore extends NativeFieldWrapperClass1 {
if (?key_OR_range && (direction is String || direction == null)) {
return _openCursor_5(key_OR_range, direction);
}
- throw "Incorrect number or type of arguments";
+ throw new ArgumentError("Incorrect number or type of arguments");
}
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/web_audio/dartium/web_audio_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698