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

Unified Diff: lib/core/errors.dart

Issue 10914116: Remove errors.dart in dart2js compiler. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « lib/compiler/implementation/lib/js_helper.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/errors.dart
diff --git a/lib/core/errors.dart b/lib/core/errors.dart
index ca9338723da621c5227759c84781abf51c3e36cc..6890f050077e0d12d478d7fd08e8e5280ec0c01a 100644
--- a/lib/core/errors.dart
+++ b/lib/core/errors.dart
@@ -2,16 +2,21 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-class AssertionError {
+class Error {
+ const Error();
}
-class TypeError extends AssertionError {
+class AssertionError implements Error {
}
-class CastException extends TypeError {
+class TypeError implements AssertionError {
}
-class FallThroughError {
+// TODO(lrn): Rename to CastError according to specification.
+class CastException implements Error {
+}
+
+class FallThroughError implements Error {
const FallThroughError();
}
« no previous file with comments | « lib/compiler/implementation/lib/js_helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698