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

Unified Diff: pkg/unittest/string_matchers.dart

Issue 10989013: Change IllegalArgumentException to ArgumentError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated co19 test expectations. Created 8 years, 3 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
Index: pkg/unittest/string_matchers.dart
diff --git a/pkg/unittest/string_matchers.dart b/pkg/unittest/string_matchers.dart
index 11ed087bcc28276505a240b3e049502598724c1e..33ab285d1afa9875cc168e8a7b4b0c458af5f878 100644
--- a/pkg/unittest/string_matchers.dart
+++ b/pkg/unittest/string_matchers.dart
@@ -171,7 +171,7 @@ class _MatchesRegExp extends _StringMatcher {
} else if (re is RegExp) {
_regexp = re;
} else {
- throw new IllegalArgumentException('matches requires a regexp or string');
+ throw new ArgumentError('matches requires a regexp or string');
}
}

Powered by Google App Engine
This is Rietveld 408576698