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

Unified Diff: sdk/lib/core/exceptions.dart

Issue 11369243: Make Exception a class, not an interface, and remove the const constructor. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | « no previous file | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/exceptions.dart
diff --git a/sdk/lib/core/exceptions.dart b/sdk/lib/core/exceptions.dart
index 2d2bc436dd496be9903aa7ac5529310df31ee8d4..03c0d4178a94345c1255caf8eec0cca79ed045b8 100644
--- a/sdk/lib/core/exceptions.dart
+++ b/sdk/lib/core/exceptions.dart
@@ -5,13 +5,11 @@
// Exceptions are thrown either by the VM or from Dart code.
/**
- * Interface implemented by all core library exceptions.
+ * Marker interface implemented by all core library exceptions.
* Defaults to an implementation that only carries a simple message.
*/
-interface Exception default _ExceptionImplementation {
- // TODO(lrn): This should be an abstract class, but we don't yet support
- // redirecting factory constructors.
- const Exception([var message]);
+abstract class Exception {
+ factory Exception([var message]) => new _ExceptionImplementation(message);
}
« no previous file with comments | « no previous file | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698