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

Unified Diff: lib/math/base.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/math/base.dart
diff --git a/lib/math/base.dart b/lib/math/base.dart
index b4b93d1e160e983400db76a61ec7c7c8a73691b5..72caa21e45431bf6d2a6505a93ea64bfc36c2721 100644
--- a/lib/math/base.dart
+++ b/lib/math/base.dart
@@ -85,9 +85,9 @@ num min(num a, num b) {
}
return a;
}
- throw new IllegalArgumentException(b);
+ throw new ArgumentError(b);
}
- throw new IllegalArgumentException(a);
+ throw new ArgumentError(a);
}
/**
@@ -124,9 +124,9 @@ num max(num a, num b) {
if (b == 0 && a.isNegative()) return b;
return a;
}
- throw new IllegalArgumentException(b);
+ throw new ArgumentError(b);
}
- throw new IllegalArgumentException(a);
+ throw new ArgumentError(a);
}
/**

Powered by Google App Engine
This is Rietveld 408576698