Index: sdk/lib/core/exceptions.dart |
diff --git a/sdk/lib/core/exceptions.dart b/sdk/lib/core/exceptions.dart |
index 61f3f89def79b09ac9016b15ec8100704051971a..2d2bc436dd496be9903aa7ac5529310df31ee8d4 100644 |
--- a/sdk/lib/core/exceptions.dart |
+++ b/sdk/lib/core/exceptions.dart |
@@ -8,8 +8,10 @@ |
* Interface implemented by all core library exceptions. |
* Defaults to an implementation that only carries a simple message. |
*/ |
-abstract class Exception { |
- const factory Exception([var message]) = _ExceptionImplementation; |
+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]); |
} |