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

Unified Diff: lib/compiler/implementation/util/uri_extras.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: lib/compiler/implementation/util/uri_extras.dart
diff --git a/lib/compiler/implementation/util/uri_extras.dart b/lib/compiler/implementation/util/uri_extras.dart
index ecff80da3c1609c8ab271582ca7e03ec7ac05180..6c3d7678994252fd94e6c2df8f793d1f0694c501 100644
--- a/lib/compiler/implementation/util/uri_extras.dart
+++ b/lib/compiler/implementation/util/uri_extras.dart
@@ -10,11 +10,11 @@
String relativize(Uri base, Uri uri, bool isWindows) {
if (!base.path.startsWith('/')) {
// Also throw an exception if [base] or base.path is null.
- throw new IllegalArgumentException('Expected absolute path: ${base.path}');
+ throw new ArgumentError('Expected absolute path: ${base.path}');
}
if (!uri.path.startsWith('/')) {
// Also throw an exception if [uri] or uri.path is null.
- throw new IllegalArgumentException('Expected absolute path: ${uri.path}');
+ throw new ArgumentError('Expected absolute path: ${uri.path}');
}
bool equalsNCS(String a, String b) {
return a.toLowerCase() == b.toLowerCase();

Powered by Google App Engine
This is Rietveld 408576698