| Index: runtime/lib/error.dart
|
| diff --git a/runtime/lib/error.dart b/runtime/lib/error.dart
|
| index 29a071a670d6e6f2c6fe998972cd3fdf4451a809..f352f8315cc250cf8322f55e07ab211e4150cefd 100644
|
| --- a/runtime/lib/error.dart
|
| +++ b/runtime/lib/error.dart
|
| @@ -4,7 +4,7 @@
|
| // Errors are created and thrown by DartVM only.
|
| // Changes here should also be reflected in corelib/error.dart as well
|
|
|
| -class AssertionErrorImplementation extends AssertionError {
|
| +class AssertionErrorImplementation implements AssertionError {
|
| factory AssertionErrorImplementation._uninstantiable() {
|
| throw const UnsupportedOperationException(
|
| "AssertionError can only be allocated by the VM");
|
| @@ -21,8 +21,10 @@ class AssertionErrorImplementation extends AssertionError {
|
| final int column;
|
| }
|
|
|
| -class TypeError extends AssertionErrorImplementation {
|
| - factory TypeError._uninstantiable() {
|
| +class TypeErrorImplementation
|
| + extends AssertionErrorImplementation
|
| + implements TypeError {
|
| + factory TypeErrorImplementation._uninstantiable() {
|
| throw const UnsupportedOperationException(
|
| "TypeError can only be allocated by the VM");
|
| }
|
| @@ -48,7 +50,9 @@ class TypeError extends AssertionErrorImplementation {
|
| final String malformedError;
|
| }
|
|
|
| -class CastException extends TypeError {
|
| +class CastExceptionImplementation
|
| + extends TypeErrorImplementation
|
| + implements CastException {
|
| factory CastException._uninstantiable() {
|
| throw const UnsupportedOperationException(
|
| "CastException can only be allocated by the VM");
|
| @@ -67,8 +71,8 @@ class CastException extends TypeError {
|
| }
|
| }
|
|
|
| -class FallThroughError {
|
| - factory FallThroughError._uninstantiable() {
|
| +class FallThroughErrorImplementation implements FallThroughError {
|
| + factory FallThroughErrorImplementation._uninstantiable() {
|
| throw const UnsupportedOperationException(
|
| "FallThroughError can only be allocated by the VM");
|
| }
|
|
|