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

Unified Diff: lib/isolate/timer.dart

Issue 11235054: Removed IllegalAccessException and UnsupportedOperationException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: ADded test expectations. Created 8 years, 2 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/isolate/timer.dart
diff --git a/lib/isolate/timer.dart b/lib/isolate/timer.dart
index 8684de73170fcea61ce6438bfdf5cff3bcc5fd2c..d8da52f7d1a26b4114b5ce5bc2481a212bf74995 100644
--- a/lib/isolate/timer.dart
+++ b/lib/isolate/timer.dart
@@ -9,7 +9,7 @@ abstract class Timer {
*/
factory Timer(int milliSeconds, void callback(Timer timer)) {
if (_TimerFactory._factory == null) {
- throw new UnsupportedOperationException("Timer interface not supported.");
+ throw new UnsupportedError("Timer interface not supported.");
}
return _TimerFactory._factory(milliSeconds, callback, false);
}
@@ -20,7 +20,7 @@ abstract class Timer {
*/
factory Timer.repeating(int milliSeconds, void callback(Timer timer)) {
if (_TimerFactory._factory == null) {
- throw new UnsupportedOperationException("Timer interface not supported.");
+ throw new UnsupportedError("Timer interface not supported.");
}
return _TimerFactory._factory(milliSeconds, callback, true);
}
« no previous file with comments | « lib/html/templates/immutable_list_mixin.darttemplate ('k') | pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698